diff options
author | Anton Khirnov <wyskas@gmail.com> | 2010-03-15 08:49:02 +0000 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2010-03-15 08:49:02 +0000 |
commit | 63100f5885e0ef7591643b1e01c79b79e254efda (patch) | |
tree | 05dac0a0de2d2600ff57bb2ab8a79bc5fb6e0ef3 /libavformat/riff.c | |
parent | 0298cc04bd69e5bac9dfcdcb8009c8cdc0f9153f (diff) | |
download | ffmpeg-63100f5885e0ef7591643b1e01c79b79e254efda.tar.gz |
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
Diffstat (limited to 'libavformat/riff.c')
-rw-r--r-- | libavformat/riff.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |