diff options
author | Alex Converse <alex.converse@gmail.com> | 2011-12-19 10:48:57 -0800 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2011-12-20 09:52:05 -0800 |
commit | 41bdd4adc4ab90a5ef7d63050a4046fcba711365 (patch) | |
tree | d2fa6d93c3941d1a40b9a505c219cfc0ab38b954 /libavformat | |
parent | d9b89b23df4f63d67694507f3d1caee62424a9d8 (diff) | |
download | ffmpeg-41bdd4adc4ab90a5ef7d63050a4046fcba711365.tar.gz |
mpegts: Suppress invalid timebase warnings on DMB streams.
timestamp_len and timestamp_res intialize to zero.
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mpegts.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 2356fa8935..15688a9747 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -732,7 +732,8 @@ static int read_sl_header(PESContext *pes, SLConfigDescr *sl, const uint8_t *buf if (cts != AV_NOPTS_VALUE) pes->pts = cts; - avpriv_set_pts_info(pes->st, sl->timestamp_len, 1, sl->timestamp_res); + if (sl->timestamp_len && sl->timestamp_res) + avpriv_set_pts_info(pes->st, sl->timestamp_len, 1, sl->timestamp_res); return (get_bits_count(&gb) + 7) >> 3; } |