Skip to content
Snippets Groups Projects
Commit 91bdced3 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

mpegtsenc: prevent pcr_packet_period==0


a period of 1 is the smallest that makes sense

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 1321e6ea
Branches
Tags
No related merge requests found
...@@ -659,6 +659,8 @@ static int mpegts_write_header(AVFormatContext *s) ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment