changeset 5839:446f49e8942a libavformat

riff: don't pad extradata when writing ASF. Patch by Anton Khirnov mirror(moc liamg saksyw)
author benoit
date Mon, 15 Mar 2010 08:49:02 +0000
parents 1ff854243335
children 2dd1e67a5892
files riff.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/riff.c	Mon Mar 15 00:19:22 2010 +0000
+++ b/riff.c	Mon Mar 15 08:49:02 2010 +0000
@@ -443,7 +443,7 @@
 
     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