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>
pull/83/head
Michael Niedermayer 10 years ago
parent cb0524f7a0
commit 7caacc50ae
  1. 3
      libavcodec/hevc_ps.c

@ -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…
Cancel
Save