summaryrefslogtreecommitdiff
path: root/libavcodec/pthread.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-01 14:02:08 +0200
committerAnton Khirnov <anton@khirnov.net>2011-12-25 16:18:57 +0100
commit3a2ddf7c2c4d27b595a601c55af23129a5a8be0d (patch)
tree3ca841a72a9d1c31397aab788ebd6c9325f112ea /libavcodec/pthread.c
parentb58dbb5b031c33cdb88f13cc533f623e82cdbcbd (diff)
lavc: add width and height fields to AVFrame
width and height are per-frame properties, setting these values in AVFrame simplify the operation of extraction of that information, since avoids the need to check the codec/stream context.
Diffstat (limited to 'libavcodec/pthread.c')
-rw-r--r--libavcodec/pthread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c
index 17dd12da6c..1ec2d1a1f9 100644
--- a/libavcodec/pthread.c
+++ b/libavcodec/pthread.c
@@ -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,