You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
mpegtsenc: prevent pcr_packet_period==0
a period of 1 is the smallest that makes sense Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -659,6 +659,8 @@ static int mpegts_write_header(AVFormatContext *s)
|
|||||||
service->pcr_packet_period =
|
service->pcr_packet_period =
|
||||||
pcr_st->codec->time_base.den/(10*pcr_st->codec->time_base.num);
|
pcr_st->codec->time_base.den/(10*pcr_st->codec->time_base.num);
|
||||||
}
|
}
|
||||||
|
if(!service->pcr_packet_period)
|
||||||
|
service->pcr_packet_period = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// output a PCR as soon as possible
|
// output a PCR as soon as possible
|
||||||
|
Reference in New Issue
Block a user