]> git.sesse.net Git - ffmpeg/commitdiff
lavc: stop setting AVFrame.motion_subsample_log2
authorAnton Khirnov <anton@khirnov.net>
Fri, 15 Feb 2013 16:29:16 +0000 (17:29 +0100)
committerAnton Khirnov <anton@khirnov.net>
Fri, 8 Mar 2013 06:41:14 +0000 (07:41 +0100)
It is not used inside lavc anywhere and now it makes no sense to export
it.

libavcodec/error_resilience.c
libavcodec/h264.c
libavcodec/svq3.c

index 78921e3fcff3e84baca198d5e26fcbe26fbf648e..feef3a86820e6ab7ca3834148b0b2930110538cf 100644 (file)
@@ -851,7 +851,6 @@ void ff_er_frame_end(ERContext *s)
             }
             return;
         }
-        s->cur_pic->f.motion_subsample_log2 = 3;
     }
 
     if (s->avctx->debug & FF_DEBUG_ER) {
index 498f611a975ab69942cdf3b0dc302a04320db070..f2f37c865e8c6dd09f1499dcaa7785d494d28fff 100644 (file)
@@ -360,7 +360,6 @@ static int alloc_picture(H264Context *h, Picture *pic)
         pic->motion_val[i] = (int16_t (*)[2])pic->motion_val_buf[i]->data + 4;
         pic->ref_index[i]  = pic->ref_index_buf[i]->data;
     }
-    pic->f.motion_subsample_log2 = 2;
 
     return 0;
 fail:
index f9d8d46d01273013a79c6957cf979eacfb7a9476..1ea99d15a638819f2c646a546f3604b6ae26de3a 100644 (file)
@@ -1058,7 +1058,6 @@ static int get_buffer(AVCodecContext *avctx, Picture *pic)
             pic->ref_index[i]  = pic->ref_index_buf[i]->data;
         }
     }
-    pic->f.motion_subsample_log2 = 2;
     pic->reference = !(h->pict_type == AV_PICTURE_TYPE_B);
 
     ret = ff_get_buffer(avctx, &pic->f,