[FFmpeg-cvslog] mpegts: Suppress invalid timebase warnings on DMB streams.
Alex Converse
git at videolan.org
Wed Dec 21 03:51:27 CET 2011
ffmpeg | branch: master | Alex Converse <alex.converse at gmail.com> | Mon Dec 19 10:48:57 2011 -0800| [41bdd4adc4ab90a5ef7d63050a4046fcba711365] | committer: Alex Converse
mpegts: Suppress invalid timebase warnings on DMB streams.
timestamp_len and timestamp_res intialize to zero.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=41bdd4adc4ab90a5ef7d63050a4046fcba711365
---
libavformat/mpegts.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 2356fa8..15688a9 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;
}
More information about the ffmpeg-cvslog
mailing list