[FFmpeg-cvslog] r10130 - trunk/libavformat/asf.c

benoit subversion
Fri Aug 17 08:49:44 CEST 2007


Author: benoit
Date: Fri Aug 17 08:49:43 2007
New Revision: 10130

Log:
store asf streaming bitrates consistently
patch by Bj?rn Axelsson: [bjorn axelsson intinor se]


Modified:
   trunk/libavformat/asf.c

Modified: trunk/libavformat/asf.c
==============================================================================
--- trunk/libavformat/asf.c	(original)
+++ trunk/libavformat/asf.c	Fri Aug 17 08:49:43 2007
@@ -370,7 +370,7 @@ static int asf_read_header(AVFormatConte
                 bitrate= get_le32(pb);
                 stream_id= (flags & 0x7f);
 //                av_log(NULL, AV_LOG_ERROR, "flags: 0x%x stream id %d, bitrate %d\n", flags, stream_id, bitrate);
-                asf->stream_bitrates[stream_id-1]= bitrate;
+                asf->stream_bitrates[stream_id]= bitrate;
             }
        } else if (!memcmp(&g, &extended_content_header, sizeof(GUID))) {
                 int desc_count, i;




More information about the ffmpeg-cvslog mailing list