summaryrefslogtreecommitdiff
path: root/libavcodec/h264_ps.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-06-03 14:09:12 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-06-03 14:09:12 +0200
commit6952e2f82a8aaa8e0c378f82b518925179daa698 (patch)
tree1994047dc0a134e8ab9b326ad4defa10ec0aaf65 /libavcodec/h264_ps.c
parent7e99d528f95a56f365a8d8e3624f9be4fe87687b (diff)
h264_ps: fix memleak in ff_h264_decode_picture_parameter_set()
Fixes: CID1026763 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264_ps.c')
-rw-r--r--libavcodec/h264_ps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h264_ps.c b/libavcodec/h264_ps.c
index 42a6903eef..ea121ed12a 100644
--- a/libavcodec/h264_ps.c
+++ b/libavcodec/h264_ps.c
@@ -599,10 +599,10 @@ int ff_h264_decode_picture_parameter_set(H264Context *h, int bit_length){
qp_bd_offset = 6*(sps->bit_depth_luma-8);
if (sps->bit_depth_luma > 14) {
av_log(h->avctx, AV_LOG_ERROR, "Invalid luma bit depth=%d\n", sps->bit_depth_luma);
- return AVERROR_INVALIDDATA;
+ goto fail;
} else if (sps->bit_depth_luma == 11 || sps->bit_depth_luma == 13) {
av_log(h->avctx, AV_LOG_ERROR, "Unimplemented luma bit depth=%d\n", sps->bit_depth_luma);
- return AVERROR_PATCHWELCOME;
+ goto fail;
}
pps->cabac= get_bits1(&h->gb);