mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
mpegts: force the default timebase
The mpegts muxer does not set the stream time base using av_set_pts_info, but expects it to have the default value of 1/90000. If the calling code changes stream pts before writing the header, other muxers override the time base at that point (like mpegenc.c).
This commit is contained in:
parent
302152d40b
commit
0a962e61e9
@ -479,6 +479,7 @@ static int mpegts_write_header(AVFormatContext *s)
|
|||||||
/* assign pids to each stream */
|
/* assign pids to each stream */
|
||||||
for(i = 0;i < s->nb_streams; i++) {
|
for(i = 0;i < s->nb_streams; i++) {
|
||||||
st = s->streams[i];
|
st = s->streams[i];
|
||||||
|
av_set_pts_info(st, 33, 1, 90000);
|
||||||
ts_st = av_mallocz(sizeof(MpegTSWriteStream));
|
ts_st = av_mallocz(sizeof(MpegTSWriteStream));
|
||||||
if (!ts_st)
|
if (!ts_st)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user