From ae315a6a3843e92f2c52156d4dbce367de720fbd Mon Sep 17 00:00:00 2001 From: Ramiro Polla Date: Wed, 4 Apr 2012 02:52:03 -0300 Subject: [PATCH] asfenc: start at object 1 instead of 0 This is how it is done in the official muxer. Signed-off-by: Michael Niedermayer --- 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 fd4ca536b5..2901545f7a 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 180f98bed9..ad031a6642 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