summaryrefslogtreecommitdiff
path: root/avplay.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2012-04-15 23:08:45 -0700
committerLuca Barbato <lu_zero@gentoo.org>2012-04-16 15:12:03 -0700
commit6943fb47d3bd0bd46734cdd762ab2c4ee89b0a22 (patch)
tree2cf70b6fd65bed4b1c19b850022dcd53ea043f1c /avplay.c
parent9fb7e14635026989d9f3e157be9ff6019139b654 (diff)
avplay: update get_buffer to be inline with avconv
The buffer must have its dimension, pixel format and aspect ratio set.
Diffstat (limited to 'avplay.c')
-rw-r--r--avplay.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/avplay.c b/avplay.c
index a11f952402..e9388fd4b8 100644
--- a/avplay.c
+++ b/avplay.c
@@ -1564,6 +1564,10 @@ static int input_get_buffer(AVCodecContext *codec, AVFrame *pic)
pic->opaque = ref;
pic->type = FF_BUFFER_TYPE_USER;
pic->reordered_opaque = codec->reordered_opaque;
+ pic->width = codec->width;
+ pic->height = codec->height;
+ pic->format = codec->pix_fmt;
+ pic->sample_aspect_ratio = codec->sample_aspect_ratio;
if (codec->pkt) pic->pkt_pts = codec->pkt->pts;
else pic->pkt_pts = AV_NOPTS_VALUE;
return 0;