mpegts: Suppress invalid timebase warnings on DMB streams.
timestamp_len and timestamp_res intialize to zero.
This commit is contained in:
parent
d9b89b23df
commit
41bdd4adc4
@ -732,6 +732,7 @@ static int read_sl_header(PESContext *pes, SLConfigDescr *sl, const uint8_t *buf
|
|||||||
if (cts != AV_NOPTS_VALUE)
|
if (cts != AV_NOPTS_VALUE)
|
||||||
pes->pts = cts;
|
pes->pts = cts;
|
||||||
|
|
||||||
|
if (sl->timestamp_len && sl->timestamp_res)
|
||||||
avpriv_set_pts_info(pes->st, sl->timestamp_len, 1, sl->timestamp_res);
|
avpriv_set_pts_info(pes->st, sl->timestamp_len, 1, sl->timestamp_res);
|
||||||
|
|
||||||
return (get_bits_count(&gb) + 7) >> 3;
|
return (get_bits_count(&gb) + 7) >> 3;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user