On Mon, Sep 24, 2012 at 07:19:26AM +0200, Anton Khirnov wrote:
> 
> --- a/libavcodec/utils.c
> +++ b/libavcodec/utils.c
> @@ -645,7 +645,7 @@ void avcodec_get_frame_defaults(AVFrame *frame)
>  
>  AVFrame *avcodec_alloc_frame(void)
>  {
> -    AVFrame *frame = av_malloc(sizeof(AVFrame));
> +    AVFrame *frame = av_mallocz(sizeof(AVFrame));

Maybe sizeof(*frame) while you're at it?  OK either way.

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

Reply via email to