[FFmpeg-cvslog] asfenc: start at object 1 instead of 0

Ramiro Polla git at videolan.org
Thu Apr 5 06:22:51 CEST 2012


ffmpeg | branch: master | Ramiro Polla <ramiro.polla at gmail.com> | Wed Apr  4 02:52:03 2012 -0300| [ae315a6a3843e92f2c52156d4dbce367de720fbd] | committer: Michael Niedermayer

asfenc: start at object 1 instead of 0

This is how it is done in the official muxer.

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

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

 libavformat/asfenc.c |    2 +-
 tests/ref/lavf/asf   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/asfenc.c b/libavformat/asfenc.c
index fd4ca53..2901545 100644
--- a/libavformat/asfenc.c
+++ b/libavformat/asfenc.c
@@ -400,7 +400,7 @@ static int asf_write_header1(AVFormatContext *s, int64_t file_size, int64_t data
 
         enc = s->streams[n]->codec;
         asf->streams[n].num = n + 1;
-        asf->streams[n].seq = 0;
+        asf->streams[n].seq = 1;
 
 
         switch(enc->codec_type) {
diff --git a/tests/ref/lavf/asf b/tests/ref/lavf/asf
index 180f98b..ad031a6 100644
--- a/tests/ref/lavf/asf
+++ b/tests/ref/lavf/asf
@@ -1,3 +1,3 @@
-e60b298a4db9bcedaabaaee9f90d2a42 *./tests/data/lavf/lavf.asf
+e2ee0e05f020adb0aa84202a60211790 *./tests/data/lavf/lavf.asf
 333489 ./tests/data/lavf/lavf.asf
 ./tests/data/lavf/lavf.asf CRC=0x9f5ab3e6



More information about the ffmpeg-cvslog mailing list