summaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.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/utils.c
parentb58dbb5b031c33cdb88f13cc533f623e82cdbcbd (diff)
downloadffmpeg-streaming-3a2ddf7c2c4d27b595a601c55af23129a5a8be0d.zip
ffmpeg-streaming-3a2ddf7c2c4d27b595a601c55af23129a5a8be0d.tar.gz
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/utils.c')
-rw-r--r--libavcodec/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 7c1a7ae..74932ed 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -860,6 +860,8 @@ int attribute_align_arg avcodec_decode_video2(AVCodecContext *avctx, AVFrame *pi
avpkt);
picture->pkt_dts= avpkt->dts;
picture->sample_aspect_ratio = avctx->sample_aspect_ratio;
+ picture->width = avctx->width;
+ picture->height = avctx->height;
}
emms_c(); //needed to avoid an emms_c() call before every return;
OpenPOWER on IntegriCloud