From: Alex Converse Date: Mon, 19 Dec 2011 18:48:57 +0000 (-0800) Subject: mpegts: Suppress invalid timebase warnings on DMB streams. X-Git-Tag: android-x86-4.4-r1~8529^2~4105 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=41bdd4adc4ab90a5ef7d63050a4046fcba711365;p=android-x86%2Fexternal-ffmpeg.git mpegts: Suppress invalid timebase warnings on DMB streams. timestamp_len and timestamp_res intialize to zero. --- 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; }