ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinha...@outlook.com> | 
Fri Mar 28 16:21:57 2025 +0100| [5fac8d062d2bfe74b8844dd2538137b087b985e5] | 
committer: Andreas Rheinhardt

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.

Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5fac8d062d2bfe74b8844dd2538137b087b985e5
---

 libavcodec/ituh263enc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/ituh263enc.c b/libavcodec/ituh263enc.c
index 2e087c518d..8be7ee4636 100644
--- a/libavcodec/ituh263enc.c
+++ b/libavcodec/ituh263enc.c
@@ -855,6 +855,7 @@ av_cold void ff_h263_encode_init(MPVMainEncContext *const m)
         }
         break;
         // Note for MPEG-4 & H.263 the dc-scale table will be set per frame as 
needed later
+#if CONFIG_FLV_ENCODER
     case AV_CODEC_ID_FLV1:
         m->encode_picture_header = ff_flv_encode_picture_header;
         if (s->c.h263_flv > 1) {
@@ -865,6 +866,7 @@ av_cold void ff_h263_encode_init(MPVMainEncContext *const m)
             s->max_qcoeff=  127;
         }
         break;
+#endif
     default: //nothing needed - default table already set in mpegvideo.c
         s->min_qcoeff= -127;
         s->max_qcoeff=  127;

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to