Mercurial > libavformat.hg
comparison riff.c @ 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 | 2c96c4c8b6e9 |
children | 536e5527c1e0 |
comparison
equal
deleted
inserted
replaced
5838:1ff854243335 | 5839:446f49e8942a |
---|---|
441 put_le32(pb, 0); | 441 put_le32(pb, 0); |
442 put_le32(pb, 0); | 442 put_le32(pb, 0); |
443 | 443 |
444 put_buffer(pb, enc->extradata, enc->extradata_size); | 444 put_buffer(pb, enc->extradata, enc->extradata_size); |
445 | 445 |
446 if (enc->extradata_size & 1) | 446 if (!for_asf && enc->extradata_size & 1) |
447 put_byte(pb, 0); | 447 put_byte(pb, 0); |
448 } | 448 } |
449 #endif //CONFIG_MUXERS | 449 #endif //CONFIG_MUXERS |
450 | 450 |
451 #if CONFIG_DEMUXERS | 451 #if CONFIG_DEMUXERS |