Commit a421bbfe authored by Janne Grunau's avatar Janne Grunau

h264: fix memleak on error during SPS parsing

Introduced in d7d6efe4.
parent 27c8337e
......@@ -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",
goto fail;
sps->log2_max_frame_num = log2_max_frame_num_minus4 + 4;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment