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: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
5247dab6b1
commit
eee6492df7
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue