Reimar Döffinger <[email protected]> added the comment:

On Tue, Jul 20, 2010 at 06:12:22PM +0000, Ernst Albrecht Köstlin wrote:
> --- libavformat/ffmdec.c      2010-07-20 20:06:00.000000000 +0200
> +++ libavformat/ffmdec_patched.c      2010-07-20 20:07:02.000000000 +0200
> @@ -385,8 +385,10 @@
>          st = s->streams[i];
>          if (st) {
>              av_free(st);
> +            s->streams[i] = NULL;
>          }

Shouldn't that whole block just be
av_freep(&s->streams[i]);
?

________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2003>
________________________________________________

Reply via email to