]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/aacpsy.c
avfilter/vf_scale: store the offset in a local variable before adding it
[ffmpeg] / libavcodec / aacpsy.c
index fca692cb153f17082e3bcb918841b8e2bbbfe2c4..482113d42757c56d24b5adcecec4627375dc0db4 100644 (file)
@@ -855,7 +855,8 @@ static void psy_3gpp_analyze(FFPsyContext *ctx, int channel,
 static av_cold void psy_3gpp_end(FFPsyContext *apc)
 {
     AacPsyContext *pctx = (AacPsyContext*) apc->model_priv_data;
-    av_freep(&pctx->ch);
+    if (pctx)
+        av_freep(&pctx->ch);
     av_freep(&apc->model_priv_data);
 }