On 11.10.2014, at 16:19, Nicolas George <geo...@nsup.org> wrote:
>> +        if (str_size > sizeof(str)-1) { // free buffer for long data field
>> +            av_freep(&pstr);
> 
> I think "if (pstr != str)" would be more robust.

Uh, wouldn't that be undefined behaviour?
You're not allowed to compare pointers from different allocations as far as I 
know, even if it usually works.
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to