summaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-01 21:18:57 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-01 22:01:38 +0200
commit77811482ab0485ff96ca9dd7cfb74948b216b471 (patch)
treebb36267e021bc0d6dfbb721322e0da125977e49d /libavcodec
parenta3477fef2bd9d1741c21d9a98b07f11cebf9f0e1 (diff)
downloadffmpeg-streaming-77811482ab0485ff96ca9dd7cfb74948b216b471.zip
ffmpeg-streaming-77811482ab0485ff96ca9dd7cfb74948b216b471.tar.gz
avcodec/utils: ff_decode_frame_props: set pkt_size
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 9ee7038..1ed6b96 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -835,14 +835,15 @@ int ff_decode_frame_props(AVCodecContext *avctx, AVFrame *frame)
int size;
AVFrameSideData *frame_sd;
-
frame->reordered_opaque = avctx->reordered_opaque;
if (!pkt) {
frame->pkt_pts = AV_NOPTS_VALUE;
+ av_frame_set_pkt_pos (frame, -1);
return 0;
}
frame->pkt_pts = pkt->pts;
+ av_frame_set_pkt_size (frame, avctx->internal->pkt->size);
/* copy the replaygain data to the output frame */
packet_sd = av_packet_get_side_data(pkt, AV_PKT_DATA_REPLAYGAIN, &size);
OpenPOWER on IntegriCloud