You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Avoid a null pointer dereference on clean-up after oom in ac3 encoder.
This commit is contained in:
@@ -2017,6 +2017,7 @@ av_cold int ff_ac3_encode_close(AVCodecContext *avctx)
|
|||||||
AC3EncodeContext *s = avctx->priv_data;
|
AC3EncodeContext *s = avctx->priv_data;
|
||||||
|
|
||||||
av_freep(&s->windowed_samples);
|
av_freep(&s->windowed_samples);
|
||||||
|
if (s->planar_samples)
|
||||||
for (ch = 0; ch < s->channels; ch++)
|
for (ch = 0; ch < s->channels; ch++)
|
||||||
av_freep(&s->planar_samples[ch]);
|
av_freep(&s->planar_samples[ch]);
|
||||||
av_freep(&s->planar_samples);
|
av_freep(&s->planar_samples);
|
||||||
|
Reference in New Issue
Block a user