On Sun, Feb 1, 2015 at 7:19 PM, Hugo Beauzée-Luyssen <[email protected]> wrote:
> Fix cid #1257836
> ---
>  libavformat/movenc.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/libavformat/movenc.c b/libavformat/movenc.c
> index 6259a87..724e84d 100644
> --- a/libavformat/movenc.c
> +++ b/libavformat/movenc.c
> @@ -3282,6 +3282,10 @@ int ff_mov_write_packet(AVFormatContext *s, AVPacket 
> *pkt)
>      if (trk->vos_len == 0 && enc->extradata_size > 0) {
>          trk->vos_len  = enc->extradata_size;
>          trk->vos_data = av_malloc(trk->vos_len);
> +        if (!trk->vos_data) {
> +            ret = AVERROR(ENOMEM);
> +            goto err;
> +        }
>          memcpy(trk->vos_data, enc->extradata, trk->vos_len);
>      }

The whole set looks good, coverity didn't report any additional leak
to be fixed.
Thanks a lot for picking them up.
-- 
Vittorio
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to