]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/h264_slice.c
avcodec/h264_slice: Use w/h from the AVFrame instead of mb_w/h
[ffmpeg] / libavcodec / h264_slice.c
index f755b96f2ef3b49d92922b92e5fc6b5983687673..35ef7bf8d3efccde80091dd32200a763a5c56892 100644 (file)
@@ -1579,8 +1579,8 @@ int ff_h264_decode_slice_header(H264Context *h, H264SliceContext *sl)
                                   (const uint8_t **)prev->f->data,
                                   prev->f->linesize,
                                   prev->f->format,
-                                  h->mb_width  * 16,
-                                  h->mb_height * 16);
+                                  prev->f->width,
+                                  prev->f->height);
                     h->short_ref[0]->poc = prev->poc + 2;
                 }
                 h->short_ref[0]->frame_num = h->prev_frame_num;