Browse Source

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>
tags/n2.4
Michael Niedermayer 11 years ago
parent
commit
7caacc50ae
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/hevc_ps.c

+ 2
- 1
libavcodec/hevc_ps.c View File

@@ -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