mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/mux: Check that deinit is set before calling it
Fixes null pointer dereference Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
dbe1dd59e0
commit
c84ba07db4
|
@ -424,6 +424,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||||
}
|
}
|
||||||
|
|
||||||
if (s->oformat->init && (ret = s->oformat->init(s)) < 0) {
|
if (s->oformat->init && (ret = s->oformat->init(s)) < 0) {
|
||||||
|
if (s->oformat->deinit)
|
||||||
s->oformat->deinit(s);
|
s->oformat->deinit(s);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue