mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
1/0 fix by (Tim Allen <tim at proximity dot com dot au>)
Originally committed as revision 2444 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
13ba9ae499
commit
b623bbcba2
@ -227,6 +227,10 @@ static int mpeg_mux_init(AVFormatContext *ctx)
|
|||||||
/* every 2 seconds */
|
/* every 2 seconds */
|
||||||
s->pack_header_freq = 2 * bitrate / s->packet_size / 8;
|
s->pack_header_freq = 2 * bitrate / s->packet_size / 8;
|
||||||
|
|
||||||
|
/* the above seems to make pack_header_freq zero sometimes */
|
||||||
|
if (s->pack_header_freq == 0)
|
||||||
|
s->pack_header_freq = 1;
|
||||||
|
|
||||||
if (s->is_mpeg2)
|
if (s->is_mpeg2)
|
||||||
/* every 200 packets. Need to look at the spec. */
|
/* every 200 packets. Need to look at the spec. */
|
||||||
s->system_header_freq = s->pack_header_freq * 40;
|
s->system_header_freq = s->pack_header_freq * 40;
|
||||||
|
Loading…
Reference in New Issue
Block a user