diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-05-27 18:43:25 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-05-27 18:43:25 +0000 |
commit | 406a0fdcabc02a7ed003ace033dd18fd36f44a3f (patch) | |
tree | 6bf9b5c35a0c626ba79a699d1728708109b118a5 /libavformat/utils.c | |
parent | d26a180fd672dcd0a838c7bdd8a052f9e6a35486 (diff) | |
download | ffmpeg-streaming-406a0fdcabc02a7ed003ace033dd18fd36f44a3f.zip ffmpeg-streaming-406a0fdcabc02a7ed003ace033dd18fd36f44a3f.tar.gz |
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
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index fbc5c8b..ea6dd0d 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -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); /* interpolate PTS and DTS if they are not present */ - if(delay <=1){ + if(delay==0 || (delay==1 && pc)){ if (presentation_delayed) { /* DTS = decompression timestamp */ /* PTS = presentation timestamp */ |