[FFmpeg-devel] [PATCH/RFC] set qscale_type for MPEG-4

Reimar Döffinger Reimar.Doeffinger
Tue Feb 2 23:54:26 CET 2010


Hello,
I have no idea if this actually makes sense, but MPlayer's -vf fspp seems to
look a lot better with it for me - no idea if MPEG-4 qscale is more similar
to MPEG-2 or MPEG-1.
Index: libavcodec/h263dec.c
===================================================================
--- libavcodec/h263dec.c	(revision 21597)
+++ libavcodec/h263dec.c	(working copy)
@@ -350,6 +350,7 @@
         if (s->low_delay==0 && s->next_picture_ptr) {
             *pict= *(AVFrame*)s->next_picture_ptr;
             s->next_picture_ptr= NULL;
+            pict->qscale_type = FF_QSCALE_TYPE_MPEG2;
 
             *data_size = sizeof(AVFrame);
         }
@@ -712,6 +713,7 @@
     } else if (s->last_picture_ptr != NULL) {
         *pict= *(AVFrame*)s->last_picture_ptr;
     }
+    pict->qscale_type = FF_QSCALE_TYPE_MPEG2;
 
     if(s->last_picture_ptr || s->low_delay){
         *data_size = sizeof(AVFrame);




More information about the ffmpeg-devel mailing list