Commit 406a0fdc authored by Michael Niedermayer's avatar Michael Niedermayer

Do not use the pts/dts calculation code which needs a parser, when no parser

is available.

Originally committed as revision 13470 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent d26a180f
...@@ -703,7 +703,7 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st, ...@@ -703,7 +703,7 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st,
// av_log(NULL, AV_LOG_DEBUG, "IN delayed:%d pts:%"PRId64", dts:%"PRId64" cur_dts:%"PRId64" st:%d pc:%p\n", presentation_delayed, pkt->pts, pkt->dts, st->cur_dts, pkt->stream_index, pc); // av_log(NULL, AV_LOG_DEBUG, "IN delayed:%d pts:%"PRId64", dts:%"PRId64" cur_dts:%"PRId64" st:%d pc:%p\n", presentation_delayed, pkt->pts, pkt->dts, st->cur_dts, pkt->stream_index, pc);
/* interpolate PTS and DTS if they are not present */ /* interpolate PTS and DTS if they are not present */
if(delay <=1){ if(delay==0 || (delay==1 && pc)){
if (presentation_delayed) { if (presentation_delayed) {
/* DTS = decompression timestamp */ /* DTS = decompression timestamp */
/* PTS = presentation timestamp */ /* PTS = presentation timestamp */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment