mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
h264_ps: fix memleak in ff_h264_decode_picture_parameter_set()
Fixes: CID1026763 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
7e99d528f9
commit
6952e2f82a
@ -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);
|
qp_bd_offset = 6*(sps->bit_depth_luma-8);
|
||||||
if (sps->bit_depth_luma > 14) {
|
if (sps->bit_depth_luma > 14) {
|
||||||
av_log(h->avctx, AV_LOG_ERROR, "Invalid luma bit depth=%d\n", sps->bit_depth_luma);
|
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) {
|
} 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);
|
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);
|
pps->cabac= get_bits1(&h->gb);
|
||||||
|
Loading…
Reference in New Issue
Block a user