On 6/2/2014 12:42 PM, Nidhi Makhijani wrote:                                 + 
FF_INPUT_BUFFER_PADDING_SIZE);
> +        if (!st->codec->extradata) {
> +            av_freep(&spxp);
> +            return AVERROR(ENOMEM);
> +        }

I don't think you actually need to free spxp, since it is stored in os->private,
and I think that is freed on error elsewhere in the Ogg code. Someone please
feel free to correct me if I am wrong.

Also, IIRC, you need to set extradata_size to 0 here.

- Derek
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to