OSDN Git Service

mpegvideo: do not update last_non_b_pict_type in update_thread_context()
authorAnton Khirnov <anton@khirnov.net>
Sat, 30 Nov 2013 10:32:25 +0000 (11:32 +0100)
committerAnton Khirnov <anton@khirnov.net>
Thu, 5 Dec 2013 12:23:33 +0000 (13:23 +0100)
It is used for encoding only.

libavcodec/mpegvideo.c

index 782185f..8ca5e3b 100644 (file)
@@ -762,10 +762,6 @@ do {\
         s->last_pict_type = s1->pict_type;
         if (s1->current_picture_ptr)
             s->last_lambda_for[s1->pict_type] = s1->current_picture_ptr->f.quality;
-
-        if (s1->pict_type != AV_PICTURE_TYPE_B) {
-            s->last_non_b_pict_type = s1->pict_type;
-        }
     }
 
     return 0;