diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c index a4e3081272..64cff43983 100644 --- a/libavcodec/pthread.c +++ b/libavcodec/pthread.c @@ -631,10 +631,10 @@ int ff_thread_decode_frame(AVCodecContext *avctx, *picture = p->frame; *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; - picture->format = avctx->pix_fmt; + picture->sample_aspect_ratio = p->avctx->sample_aspect_ratio; + picture->width = p->avctx->width; + picture->height = p->avctx->height; + picture->format = p->avctx->pix_fmt; /* * A later call with avkpt->size == 0 may loop over all threads,