Browse Source

lavf: do not use the parser duration for video

The parser has no way of knowing video duration, and therefore no video
parsers set it.
tags/n2.3
Anton Khirnov 12 years ago
parent
commit
f9157463db
1 changed files with 0 additions and 6 deletions
  1. +0
    -6
      libavformat/utils.c

+ 0
- 6
libavformat/utils.c View File

@@ -956,12 +956,6 @@ static int parse_packet(AVFormatContext *s, AVPacket *pkt, int stream_index)
st->time_base,
AV_ROUND_DOWN);
}
} else if (st->codec->time_base.num != 0 &&
st->codec->time_base.den != 0) {
out_pkt.duration = av_rescale_q_rnd(st->parser->duration,
st->codec->time_base,
st->time_base,
AV_ROUND_DOWN);
}

out_pkt.stream_index = st->index;


Loading…
Cancel
Save