mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-29 22:00:58 +02:00
Merge commit 'cb167f2947f1a2c446bd8db196d0e64ef4a6d06b'
* commit 'cb167f2947f1a2c446bd8db196d0e64ef4a6d06b': h264_refs: validate the SPS pointer in ff_h264_execute_ref_pic_marking() Merged-by: James Almer <jamrial@gmail.com>
This commit is contained in:
commit
0e5a47693c
@ -614,6 +614,12 @@ int ff_h264_execute_ref_pic_marking(H264Context *h)
|
||||
int current_ref_assigned = 0, err = 0;
|
||||
H264Picture *av_uninit(pic);
|
||||
|
||||
if (!h->ps.sps) {
|
||||
av_log(h->avctx, AV_LOG_ERROR, "SPS is unset\n");
|
||||
err = AVERROR_INVALIDDATA;
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (!h->explicit_ref_marking)
|
||||
generate_sliding_window_mmcos(h);
|
||||
mmco_count = h->nb_mmco;
|
||||
@ -817,6 +823,7 @@ int ff_h264_execute_ref_pic_marking(H264Context *h)
|
||||
h->frame_recovered |= FRAME_RECOVERED_SEI;
|
||||
}
|
||||
|
||||
out:
|
||||
return (h->avctx->err_recognition & AV_EF_EXPLODE) ? err : 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user