changeset 2392:39e9fb85fcbc libavformat

store asf streaming bitrates consistently patch by Bj«Órn Axelsson: [bjorn axelsson intinor se]
author benoit
date Fri, 17 Aug 2007 06:49:43 +0000
parents 2298213e3016
children fc685315d568
files asf.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/asf.c	Thu Aug 16 22:12:03 2007 +0000
+++ b/asf.c	Fri Aug 17 06:49:43 2007 +0000
@@ -370,7 +370,7 @@
                 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;