Commit eee6492d authored by Marton Balint's avatar Marton Balint

avcodec/libx265: fix else clause when zeroing reordered_opaque

CC	libavcodec/libx265.o
libavcodec/libx265.c: In function ‘libx265_encode_frame’:
libavcodec/libx265.c:781:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
     else
     ^~~~
libavcodec/libx265.c:782:1: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’
 FF_DISABLE_DEPRECATION_WARNINGS
 ^~~
Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent 5247dab6
......@@ -778,10 +778,11 @@ FF_ENABLE_DEPRECATION_WARNINGS
rd_release(ctx, idx);
}
#if FF_API_REORDERED_OPAQUE
else
else {
FF_DISABLE_DEPRECATION_WARNINGS
avctx->reordered_opaque = 0;
FF_ENABLE_DEPRECATION_WARNINGS
}
#endif
*got_packet = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment