Commit 91bdced3 authored by Michael Niedermayer's avatar Michael Niedermayer

mpegtsenc: prevent pcr_packet_period==0

a period of 1 is the smallest that makes sense
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 1321e6ea
......@@ -659,6 +659,8 @@ static int mpegts_write_header(AVFormatContext *s)
service->pcr_packet_period =
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment