summaryrefslogtreecommitdiff
path: root/libavcodec/rawdec.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-06-16 11:01:33 +0200
committerStefano Sabatini <stefasab@gmail.com>2012-06-19 01:36:17 +0200
commitb583ccc3dbc9d29a5e50b9394ec3eea7237a520a (patch)
tree2a1a594e114d88639e2634419729bb7314dd409a /libavcodec/rawdec.c
parent4b5c7d4d9af92819a8523cd01c175c93f150529e (diff)
lavc/rawdec: propagate duration from packet to frame
Diffstat (limited to 'libavcodec/rawdec.c')
-rw-r--r--libavcodec/rawdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c
index 4c850f551c..d790b881fb 100644
--- a/libavcodec/rawdec.c
+++ b/libavcodec/rawdec.c
@@ -150,6 +150,7 @@ static int raw_decode(AVCodecContext *avctx,
frame->reordered_opaque = avctx->reordered_opaque;
frame->pkt_pts = avctx->pkt->pts;
frame->pkt_pos = avctx->pkt->pos;
+ frame->pkt_duration = avctx->pkt->duration;
if(context->tff>=0){
frame->interlaced_frame = 1;