summaryrefslogtreecommitdiff
path: root/libavcodec/h264_ps.c
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2012-12-14 21:08:24 +0100
committerJanne Grunau <janne-libav@jannau.net>2012-12-15 19:16:39 +0100
commita421bbfe83ad55eff335fc19bbacc1e9fecfc3cf (patch)
tree2a73f04afb00d03847d0355acf8983630c007940 /libavcodec/h264_ps.c
parent27c8337e595a058347150269d5c2c48281e4285b (diff)
downloadffmpeg-a421bbfe83ad55eff335fc19bbacc1e9fecfc3cf.tar.gz
h264: fix memleak on error during SPS parsing
Introduced in d7d6efe42b0d.
Diffstat (limited to 'libavcodec/h264_ps.c')
-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 0166ad2e94..7eb8726ec0 100644
--- a/libavcodec/h264_ps.c
+++ b/libavcodec/h264_ps.c
@@ -357,7 +357,7 @@ int ff_h264_decode_seq_parameter_set(H264Context *h){
av_log(h->s.avctx, AV_LOG_ERROR,
"log2_max_frame_num_minus4 out of range (0-12): %d\n",
log2_max_frame_num_minus4);
- return AVERROR_INVALIDDATA;
+ goto fail;
}
sps->log2_max_frame_num = log2_max_frame_num_minus4 + 4;