diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2009-03-21 20:34:24 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2009-03-21 20:34:24 +0000 |
commit | 8b9794e5424387db0134d2d320cad1ff78e329e7 (patch) | |
tree | 35b5556ca46b438fa95a32b9bbcc630e1491741e /libavformat | |
parent | 83c0ba3dad814157f09fe5b7363623292d5d861f (diff) | |
download | ffmpeg-8b9794e5424387db0134d2d320cad1ff78e329e7.tar.gz |
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.
Originally committed as revision 18119 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rmenc.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/libavformat/rmenc.c b/libavformat/rmenc.c index 78b180f5fc..21748d5d52 100644 --- a/libavformat/rmenc.c +++ b/libavformat/rmenc.c @@ -425,16 +425,8 @@ static int rm_write_trailer(AVFormatContext *s) 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); - - 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 */ - } + /* FIXME: write index */ + /* undocumented end header */ put_be32(pb, 0); put_be32(pb, 0); @@ -442,7 +434,7 @@ static int rm_write_trailer(AVFormatContext *s) 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); |