[FFmpeg-devel] [PATCH] riff: don't pad extradata when writing ASF.

Michael Niedermayer michaelni
Thu Mar 11 21:53:04 CET 2010


On Thu, Mar 11, 2010 at 09:43:39PM +0100, Anton Khirnov wrote:
> 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);

id suspect the outer size being wrong instead of this
but thats purely guessing, did you try to +1 it ?

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The real ebay dictionary, page 1
"Used only once"    - "Some unspecified defect prevented a second use"
"In good condition" - "Can be repaird by experienced expert"
"As is" - "You wouldnt want it even if you were payed for it, if you knew ..."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100311/380f012d/attachment.pgp>



More information about the ffmpeg-devel mailing list