lavc: add width and height fields to AVFrame
[ffmpeg.git] / libavcodec / pthread.c
index 17dd12d..1ec2d1a 100644 (file)
@@ -600,6 +600,8 @@ int ff_thread_decode_frame(AVCodecContext *avctx,
         *got_picture_ptr = p->got_frame;
         picture->pkt_dts = p->avpkt.dts;
         picture->sample_aspect_ratio = avctx->sample_aspect_ratio;
+        picture->width  = avctx->width;
+        picture->height = avctx->height;
 
         /*
          * A later call with avkpt->size == 0 may loop over all threads,