mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
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,7 +424,8 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||
}
|
||||
|
||||
if (s->oformat->init && (ret = s->oformat->init(s)) < 0) {
|
||||
s->oformat->deinit(s);
|
||||
if (s->oformat->deinit)
|
||||
s->oformat->deinit(s);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user