diff mpeg12.c @ 1196:2e06398e4647 libavcodec

mpeg2 qscale flag a few bugfixes for the C pp code minor optimization
author michaelni
date Fri, 18 Apr 2003 12:45:34 +0000
parents 38e8b8f331cb
children 126f766bc4c5
line wrap: on
line diff
--- a/mpeg12.c	Thu Apr 17 19:53:36 2003 +0000
+++ b/mpeg12.c	Fri Apr 18 12:45:34 2003 +0000
@@ -2001,8 +2001,11 @@
     if (s->mb_y<<field_pic == s->mb_height && !s->first_field) {
         /* end of image */
 
-        if(s->mpeg2)
-            s->qscale >>=1;
+        if(s->mpeg2){
+            s->current_picture_ptr->qscale_type= FF_QSCALE_TYPE_MPEG2;
+        }else
+            s->current_picture_ptr->qscale_type= FF_QSCALE_TYPE_MPEG1;
+
         ff_er_frame_end(s);
 
         MPV_frame_end(s);