History

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 ^~~

Marton Balint committed 3 years ago

Commit eee64921 parent 5247dab1 file · +2 −1Browse files

Unified · Split

libavcodec/libx265.c+2−1
@@ -778,10 +778,11 @@ FF_ENABLE_DEPRECATION_WARNINGS · 777 unmodified lines
778778 rd_release(ctx, idx);
779779 }
780780 #if FF_API_REORDERED_OPAQUE
781− else
781+ else {
782782 FF_DISABLE_DEPRECATION_WARNINGS
783783 avctx->reordered_opaque = 0;
784784 FF_ENABLE_DEPRECATION_WARNINGS
785+ }
785786 #endif
786787
787788 *got_packet = 1;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t