lavc/rawdec: propagate duration from packet to frame

pull/59/head
Stefano Sabatini 13 years ago
parent 4b5c7d4d9a
commit b583ccc3db
  1. 1
      libavcodec/rawdec.c

@ -150,6 +150,7 @@ static int raw_decode(AVCodecContext *avctx,
frame->reordered_opaque = avctx->reordered_opaque; frame->reordered_opaque = avctx->reordered_opaque;
frame->pkt_pts = avctx->pkt->pts; frame->pkt_pts = avctx->pkt->pts;
frame->pkt_pos = avctx->pkt->pos; frame->pkt_pos = avctx->pkt->pos;
frame->pkt_duration = avctx->pkt->duration;
if(context->tff>=0){ if(context->tff>=0){
frame->interlaced_frame = 1; frame->interlaced_frame = 1;

Loading…
Cancel
Save