aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/rawdec.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-02-19 18:52:26 +0100
committerAnton Khirnov <anton@khirnov.net>2014-03-24 06:07:51 +0100
commit4a0f6651434c6f213d830140f575b4ec7858519f (patch)
tree60d1d4a771b97c24413204a4db92b4db1b0d944b /libavcodec/rawdec.c
parent5a7e35dd2351c30bab45177b9482cb8833a0ca78 (diff)
downloadffmpeg-4a0f6651434c6f213d830140f575b4ec7858519f.tar.gz
libavcodec: when decoding, copy replaygain side data to decoded frames
Diffstat (limited to 'libavcodec/rawdec.c')
-rw-r--r--libavcodec/rawdec.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c
index a8227c7ae8..3b69e49e84 100644
--- a/libavcodec/rawdec.c
+++ b/libavcodec/rawdec.c
@@ -150,8 +150,10 @@ static int raw_decode(AVCodecContext *avctx, void *data, int *got_frame,
frame->pict_type = AV_PICTURE_TYPE_I;
frame->key_frame = 1;
- frame->reordered_opaque = avctx->reordered_opaque;
- frame->pkt_pts = avctx->internal->pkt->pts;
+
+ res = ff_decode_frame_props(avctx, frame);
+ if (res < 0)
+ return res;
if (buf_size < context->frame_size - (avctx->pix_fmt == AV_PIX_FMT_PAL8 ?
AVPALETTE_SIZE : 0))