mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avcodec/hevc_ps: do cleanup in case of unsupported bit depth
Fixes memleak Fixes CID1231989 Reviewed-by: Timothy Gu <timothygu99@gmail.com> Reviewed-by: Mickaël Raulet <mraulet@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
cb0524f7a0
commit
7caacc50ae
@ -810,7 +810,8 @@ int ff_hevc_decode_nal_sps(HEVCContext *s)
|
||||
default:
|
||||
av_log(s->avctx, AV_LOG_ERROR,
|
||||
"4:2:0, 4:2:2, 4:4:4 supports are currently specified for 8, 10 and 12 bits.\n");
|
||||
return AVERROR_PATCHWELCOME;
|
||||
ret = AVERROR_PATCHWELCOME;
|
||||
goto err;
|
||||
}
|
||||
|
||||
desc = av_pix_fmt_desc_get(sps->pix_fmt);
|
||||
|
Loading…
x
Reference in New Issue
Block a user