mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 07:31:22 +01:00
h264: fix memleak on error during SPS parsing
Introduced in d7d6efe42b.
This commit is contained in:
parent
27c8337e59
commit
a421bbfe83
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue