[FFmpeg-cvslog] rmenc: write correct bytes per minute

Piotr Bandurski git at videolan.org
Sun Dec 23 16:15:54 CET 2012


ffmpeg | branch: master | Piotr Bandurski <ami_stuff at o2.pl> | Sun Dec 23 15:28:51 2012 +0100| [9bbfcc267540ce9df34097aaa4ba75e8eb09907c] | committer: Michael Niedermayer

rmenc: write correct bytes per minute

improves playback of ac3 in RealPlayer

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9bbfcc267540ce9df34097aaa4ba75e8eb09907c
---

 libavformat/rmenc.c |    4 ++--
 tests/ref/lavf/rm   |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavformat/rmenc.c b/libavformat/rmenc.c
index 6c05657..a96c429 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);
diff --git a/tests/ref/lavf/rm b/tests/ref/lavf/rm
index 2c05806..d396e00 100644
--- a/tests/ref/lavf/rm
+++ b/tests/ref/lavf/rm
@@ -1,2 +1,2 @@
-85ef42a1fdeffaf083d14b633bbd697f *./tests/data/lavf/lavf.rm
+a3a875be9c528a2a4534a5a31230fdae *./tests/data/lavf/lavf.rm
 346424 ./tests/data/lavf/lavf.rm



More information about the ffmpeg-cvslog mailing list