mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-09 14:14:39 +02:00
lavc/smacker: fix mem leak in case of init failure
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
This commit is contained in:
parent
691f9be622
commit
969382162f
@ -589,6 +589,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
|
|||||||
/* decode huffman trees from extradata */
|
/* decode huffman trees from extradata */
|
||||||
if(avctx->extradata_size < 16){
|
if(avctx->extradata_size < 16){
|
||||||
av_log(avctx, AV_LOG_ERROR, "Extradata missing!\n");
|
av_log(avctx, AV_LOG_ERROR, "Extradata missing!\n");
|
||||||
|
decode_end(avctx);
|
||||||
return AVERROR(EINVAL);
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user