diff --git a/libavformat/mov.c b/libavformat/mov.c index d19b213ffa..1a4450153f 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -3258,6 +3258,7 @@ fail: av_freep(&sc->extradata[j]); } + sc->stsd_count = 0; av_freep(&sc->extradata); av_freep(&sc->extradata_size); return ret;