summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-08-20 03:38:30 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-08-20 15:14:53 +0200
commit7caacc50aed5e85070aa860f579be87fa4ff5ca5 (patch)
treedcc1e6db2bbd25f9c84d928c5afc82af75f6afd6 /libavcodec
parentcb0524f7a02f910ae2df163e655cb495ea9f2493 (diff)
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>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/hevc_ps.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c
index 163c5e4aab..2ccce5f78c 100644
--- a/libavcodec/hevc_ps.c
+++ b/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);