Commit 20b27780 authored by michael's avatar michael

1/0 fix by (Tim Allen <tim at proximity dot com dot au>)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2444 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7ffa1df8
......@@ -226,6 +226,10 @@ static int mpeg_mux_init(AVFormatContext *ctx)
else
/* every 2 seconds */
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)
/* every 200 packets. Need to look at the spec. */
......
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