[FFmpeg-devel] [PATCH] riff: don't pad extradata when writing ASF.
Anton Khirnov
wyskas
Thu Mar 11 21:43:39 CET 2010
fixes issue1512
---
libavformat/riff.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavformat/riff.c b/libavformat/riff.c
index 0a3bc95..08001d9 100644
--- a/libavformat/riff.c
+++ b/libavformat/riff.c
@@ -442,7 +442,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
--
1.7.0
More information about the ffmpeg-devel
mailing list