lavc/rawdec: propagate duration from packet to frame

This commit is contained in:
Stefano Sabatini 2012-06-16 11:01:33 +02:00
parent 4b5c7d4d9a
commit b583ccc3db
1 changed files with 1 additions and 0 deletions

View File

@ -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;