mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avfilter/lavfutils: Don't use uninitialized pointers for freeing
Happened on several error conditions, e.g. if there is just no decoder for the format (like with svg images). Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> (cherry picked from commit 3d1a9824b8e7f5ad52447cc2d60beffc9e66ff67)
This commit is contained in:
parent
88a563b27d
commit
0d7fe1ab8f
@ -28,9 +28,9 @@ int ff_load_image(uint8_t *data[4], int linesize[4],
|
||||
AVInputFormat *iformat = NULL;
|
||||
AVFormatContext *format_ctx = NULL;
|
||||
AVCodec *codec;
|
||||
AVCodecContext *codec_ctx;
|
||||
AVCodecContext *codec_ctx = NULL;
|
||||
AVCodecParameters *par;
|
||||
AVFrame *frame;
|
||||
AVFrame *frame = NULL;
|
||||
int frame_decoded, ret = 0;
|
||||
AVPacket pkt;
|
||||
AVDictionary *opt=NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user