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
855 }855 }
856 break;856 break;
857 // Note for MPEG-4 & H.263 the dc-scale table will be set per frame as needed later857 // Note for MPEG-4 & H.263 the dc-scale table will be set per frame as needed later
858#if CONFIG_FLV_ENCODER
858 case AV_CODEC_ID_FLV1:859 case AV_CODEC_ID_FLV1:
859 m->encode_picture_header = ff_flv_encode_picture_header;860 m->encode_picture_header = ff_flv_encode_picture_header;
860 if (s->c.h263_flv > 1) {861 if (s->c.h263_flv > 1) {
@@ -865,6 +866,7 @@ av_cold void ff_h263_encode_init(MPVMainEncContext *const m) · 4 unmodified lines
865 s->max_qcoeff= 127;866 s->max_qcoeff= 127;
866 }867 }
867 break;868 break;
869#endif
868 default: //nothing needed - default table already set in mpegvideo.c870 default: //nothing needed - default table already set in mpegvideo.c
869 s->min_qcoeff= -127;871 s->min_qcoeff= -127;
870 s->max_qcoeff= 127;872 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