aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-12-28 00:50:28 -0500
committerAnton Khirnov <anton@khirnov.net>2012-01-01 22:27:04 +0100
commit28b4af8e38204261df2f22faae6f0a70cacb3565 (patch)
treed3c30bdbfd3127eeb312edcf60dd2e5b3c8a397e
parentd3a5c2698676c68e529f79d8bf9954793b97fc4e (diff)
downloadffmpeg-28b4af8e38204261df2f22faae6f0a70cacb3565.tar.gz
rawdec: propagate pict_type information to the output frame
Signed-off-by: Anton Khirnov <anton@khirnov.net>
-rw-r--r--libavcodec/rawdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c
index dcbe23c500..427d109a2b 100644
--- a/libavcodec/rawdec.c
+++ b/libavcodec/rawdec.c
@@ -123,6 +123,7 @@ static int raw_decode(AVCodecContext *avctx,
AVFrame * frame = (AVFrame *) data;
AVPicture * picture = (AVPicture *) data;
+ frame->pict_type = avctx->coded_frame->pict_type;
frame->interlaced_frame = avctx->coded_frame->interlaced_frame;
frame->top_field_first = avctx->coded_frame->top_field_first;
frame->reordered_opaque = avctx->reordered_opaque;