[FFmpeg-devel] [PATCH] Make minrate/maxrate work for MJPEG

Robert Krüger krueger
Mon Mar 15 16:20:53 CET 2010


Hi,

this is related to issue 1813. It makes MJPEG encoding honor minrate/maxrate constraints.

No idea if this is a clean fix.

Index: libavcodec/mpegvideo_enc.c
===================================================================
--- libavcodec/mpegvideo_enc.c	(revision 22545)
+++ libavcodec/mpegvideo_enc.c	(working copy)
@@ -1321,6 +1321,7 @@
             switch(s->codec_id){
             case CODEC_ID_MPEG1VIDEO:
             case CODEC_ID_MPEG2VIDEO:
+            case CODEC_ID_MJPEG:
                 while(stuffing_count--){
                     put_bits(&s->pb, 8, 0);
                 }

Regards,

Robert





More information about the ffmpeg-devel mailing list