On Fri, Apr 17, 2015 at 11:21 AM, Anton Khirnov <[email protected]> wrote:
> ---
>  libavcodec/rawenc.c | 10 ++++++++--
>  1 file changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/libavcodec/rawenc.c b/libavcodec/rawenc.c
> index bca0d08..cb57628 100644
> --- a/libavcodec/rawenc.c
> +++ b/libavcodec/rawenc.c
> @@ -35,7 +35,7 @@ static av_cold int raw_encode_init(AVCodecContext *avctx)
>  {
>      const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(avctx->pix_fmt);
>
> -    avctx->coded_frame            = avctx->priv_data;
> +    avctx->coded_frame            = av_frame_alloc();

plz add a null check here

looks good otherwise
-- 
Vittorio
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to