From 63100f5885e0ef7591643b1e01c79b79e254efda Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 15 Mar 2010 08:49:02 +0000 Subject: riff: don't pad extradata when writing ASF. Patch by Anton Khirnov mirror(moc liamg saksyw) Originally committed as revision 22539 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/riff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/riff.c') diff --git a/libavformat/riff.c b/libavformat/riff.c index f241421b80..8db684ae8e 100644 --- a/libavformat/riff.c +++ b/libavformat/riff.c @@ -443,7 +443,7 @@ void ff_put_bmp_header(ByteIOContext *pb, AVCodecContext *enc, const AVCodecTag put_buffer(pb, enc->extradata, enc->extradata_size); - if (enc->extradata_size & 1) + if (!for_asf && enc->extradata_size & 1) put_byte(pb, 0); } #endif //CONFIG_MUXERS -- cgit v1.2.3