[FFmpeg-devel] [PATCH] mp4toannexb modification / improvement

Luca Abeni lucabe72
Tue Jun 8 11:20:27 CEST 2010


On 06/08/2010 01:42 AM, Michael Niedermayer wrote:
[...]
>>   ffmpeg.c |    7 ++++++-
>>   1 file changed, 6 insertions(+), 1 deletion(-)
>> 2e0ec35d443d49e150d89ed25889353dabdf93dd  copy_extradata_3.diff
>> Index: ffmpeg.c
>> ===================================================================
>> --- ffmpeg.c	(revision 23512)
>> +++ ffmpeg.c	(working copy)
>> @@ -2168,7 +2168,10 @@
>>               }
>>
>>               codec->bit_rate = icodec->bit_rate;
>> -            codec->extradata= icodec->extradata;
>> +            codec->extradata= av_malloc(icodec->extradata_size);
>
> missing padding

Ops... I knew I was going to miss something :)
Hopefully fixed both the two issues (since I am allocating a buffer
larger than extradata_size, and copying only extradata_size, bytes,
I used av_mallocz() instead of av_malloc()... I hope it is the right
thing to do).


			Thanks,
				Luca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: copy_extradata_4.diff
Type: text/x-diff
Size: 1119 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100608/74814731/attachment.diff>



More information about the ffmpeg-devel mailing list