diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-10-28 10:55:15 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-10-28 10:55:15 +0000 |
commit | b623bbcba2626c3976378bf06675267c1726f4af (patch) | |
tree | 461af572b6d3b099760ccb04533e751e0981c07c /libavformat/mpeg.c | |
parent | 13ba9ae499052b4a49055753e7bec98cf57716f4 (diff) | |
download | ffmpeg-b623bbcba2626c3976378bf06675267c1726f4af.tar.gz |
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
Diffstat (limited to 'libavformat/mpeg.c')
-rw-r--r-- | libavformat/mpeg.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c index 60224dc095..45ffdf6841 100644 --- a/libavformat/mpeg.c +++ b/libavformat/mpeg.c @@ -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. */ |