On Thu, Aug 20, 2009 at 11:18:37AM +0200, gkovacs wrote:
> Modified: concat/libavformat/playlist.c
> ==============================================================================
> --- concat/libavformat/playlist.c     Thu Aug 20 10:56:59 2009        (r5185)
> +++ concat/libavformat/playlist.c     Thu Aug 20 11:18:37 2009        (r5186)
> @@ -111,6 +111,10 @@ void ff_playlist_split_encodedstring(con
>          if (c == sep) {
>              sepidx[len] = ts-s;
>              sepidx = av_fast_realloc(sepidx, &buflen, ++len);
> +            if (!sepidx) {
> +                av_log(NULL, AV_LOG_ERROR, "av_fast_realloc error in 
> ff_playlist_split_encodedstring\n");
> +                continue;

Note that this leaks memory, the original pointer is still valid.
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to