aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Strange <astrange@ithinksw.com>2012-03-24 15:34:22 -0700
committerRonald S. Bultje <rsbultje@gmail.com>2012-03-24 15:34:33 -0700
commitcb3486778044e580ef38a8d861af4a2e42336866 (patch)
tree6f732e7ceaf30111fcedc00923f81ff670203e66
parent147ee4cf065a20bbba10292b496a037e6573cd6e (diff)
downloadffmpeg-cb3486778044e580ef38a8d861af4a2e42336866.tar.gz
h264: fix memleak in error path.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
-rw-r--r--libavcodec/h264_ps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264_ps.c b/libavcodec/h264_ps.c
index 05f04afa57..354469c9ad 100644
--- a/libavcodec/h264_ps.c
+++ b/libavcodec/h264_ps.c
@@ -334,7 +334,7 @@ int ff_h264_decode_seq_parameter_set(H264Context *h){
sps->chroma_format_idc= get_ue_golomb_31(&s->gb);
if(sps->chroma_format_idc > 3) {
av_log(h->s.avctx, AV_LOG_ERROR, "chroma_format_idc (%u) out of range\n", sps->chroma_format_idc);
- return -1;
+ goto fail;
} else if(sps->chroma_format_idc == 3) {
sps->residual_color_transform_flag = get_bits1(&s->gb);
}