History

avcodec/ituh263enc: Add necessary #if checks for FLV encoder

Fixes compilation in case where the FLV encoder is disabled with any other H.263 based encoder enabled.

Andreas Rheinhardt committed 1 year ago

Commit 5fac8d01 parent d3b940b1 file · +2 −0Browse files

Unified · Split

libavcodec/ituh263enc.c+2−0
@@ -855,6 +855,7 @@ av_cold void ff_h263_encode_init(MPVMainEncContext *const m) · 854 unmodified lines
855855 }
856856 break;
857857 // Note for MPEG-4 & H.263 the dc-scale table will be set per frame as needed later
858+#if CONFIG_FLV_ENCODER
858859 case AV_CODEC_ID_FLV1:
859860 m->encode_picture_header = ff_flv_encode_picture_header;
860861 if (s->c.h263_flv > 1) {
@@ -865,6 +866,7 @@ av_cold void ff_h263_encode_init(MPVMainEncContext *const m) · 4 unmodified lines
865866 s->max_qcoeff= 127;
866867 }
867868 break;
869+#endif
868870 default: //nothing needed - default table already set in mpegvideo.c
869871 s->min_qcoeff= -127;
870872 s->max_qcoeff= 127;

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