diff options
author | Piotr Bandurski <ami_stuff@o2.pl> | 2012-12-23 15:28:51 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-12-23 16:08:10 +0100 |
commit | 9bbfcc267540ce9df34097aaa4ba75e8eb09907c (patch) | |
tree | cf6e553bdd280eaafd93901a66a102fae31c6157 /libavformat/rmenc.c | |
parent | 76f126ba2e38cd61e3e4b39e0ca76e55f247fead (diff) | |
download | ffmpeg-9bbfcc267540ce9df34097aaa4ba75e8eb09907c.tar.gz |
rmenc: write correct bytes per minute
improves playback of ac3 in RealPlayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rmenc.c')
-rw-r--r-- | libavformat/rmenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/rmenc.c b/libavformat/rmenc.c index 6c05657a07..a96c42933d 100644 --- a/libavformat/rmenc.c +++ b/libavformat/rmenc.c @@ -217,8 +217,8 @@ static int rv10_write_header(AVFormatContext *ctx, coded_frame_size--; avio_wb32(s, coded_frame_size); /* frame length */ avio_wb32(s, 0x51540); /* unknown */ - avio_wb32(s, 0x249f0); /* unknown */ - avio_wb32(s, 0x249f0); /* unknown */ + avio_wb32(s, stream->enc->bit_rate / 8 * 60); /* bytes per minute */ + avio_wb32(s, stream->enc->bit_rate / 8 * 60); /* bytes per minute */ avio_wb16(s, 0x01); /* frame length : seems to be very important */ avio_wb16(s, coded_frame_size); |