changeset 4770:7875964b4a58 libavformat

Remove index writing in RM muxer, since it is broken (multiple streams per single index chunk) and is always empty anyway. See "[PATCH] rmenc.c: remove index writing" thread.
author rbultje
date Sat, 21 Mar 2009 20:34:24 +0000
parents 6fff7e0861fc
children 2e0ea6f96564
files rmenc.c
diffstat 1 files changed, 2 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/rmenc.c	Sat Mar 21 19:19:09 2009 +0000
+++ b/rmenc.c	Sat Mar 21 20:34:24 2009 +0000
@@ -425,16 +425,8 @@
         index_pos = url_fseek(pb, 0, SEEK_CUR);
         data_size = index_pos - rm->data_pos;
 
-        /* index */
-        put_tag(pb, "INDX");
-        put_be32(pb, 10 + 10 * s->nb_streams);
-        put_be16(pb, 0);
+        /* FIXME: write index */
 
-        for(i=0;i<s->nb_streams;i++) {
-            put_be32(pb, 0); /* zero indexes */
-            put_be16(pb, i); /* stream number */
-            put_be32(pb, 0); /* next index */
-        }
         /* undocumented end header */
         put_be32(pb, 0);
         put_be32(pb, 0);
@@ -442,7 +434,7 @@
         url_fseek(pb, 0, SEEK_SET);
         for(i=0;i<s->nb_streams;i++)
             rm->streams[i].total_frames = rm->streams[i].nb_frames;
-        rv10_write_header(s, data_size, index_pos);
+        rv10_write_header(s, data_size, 0);
     } else {
         /* undocumented end header */
         put_be32(pb, 0);