Browse code

mpegts: Suppress invalid timebase warnings on DMB streams.

timestamp_len and timestamp_res intialize to zero.
(cherry picked from commit 41bdd4adc4ab90a5ef7d63050a4046fcba711365)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Alex Converse authored on 2011/12/20 03:48:57
Showing 1 changed files
... ...
@@ -762,7 +762,8 @@ static int read_sl_header(PESContext *pes, SLConfigDescr *sl, const uint8_t *buf
762 762
     if (cts != AV_NOPTS_VALUE)
763 763
         pes->pts = cts;
764 764
 
765
-    avpriv_set_pts_info(pes->st, sl->timestamp_len, 1, sl->timestamp_res);
765
+    if (sl->timestamp_len && sl->timestamp_res)
766
+        avpriv_set_pts_info(pes->st, sl->timestamp_len, 1, sl->timestamp_res);
766 767
 
767 768
     return (get_bits_count(&gb) + 7) >> 3;
768 769
 }