diff --git a/libavformat/wtvenc.c b/libavformat/wtvenc.c index f79b96fda1..e86bfeb779 100644 --- a/libavformat/wtvenc.c +++ b/libavformat/wtvenc.c @@ -293,11 +293,11 @@ static int write_stream_data(AVFormatContext *s, AVStream *st) AVIOContext *pb = s->pb; int ret; - write_chunk_header2(s, &ff_SBE2_STREAM_DESC_EVENT, 0x80000000 | (st->index + INDEX_BASE)); - avio_wl32(pb, 0x00000001); - avio_wl32(pb, st->index + INDEX_BASE); //stream_id - avio_wl32(pb, 0x00000001); - write_pad(pb, 8); + write_chunk_header2(s, &ff_SBE2_STREAM_DESC_EVENT, 0x80000000 | (st->index + INDEX_BASE)); + avio_wl32(pb, 0x00000001); + avio_wl32(pb, st->index + INDEX_BASE); //stream_id + avio_wl32(pb, 0x00000001); + write_pad(pb, 8); ret = write_stream_codec_info(s, st); if (ret < 0) {