mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02:00
avcodec/h264_slice: Remove dead sps check
Fixes: CID1439574 Dereference after null check
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit a68aa951b2)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -1465,7 +1465,7 @@ static int h264_field_start(H264Context *h, const H264SliceContext *sl,
|
||||
|
||||
sps = h->ps.sps;
|
||||
|
||||
if (sps && sps->bitstream_restriction_flag &&
|
||||
if (sps->bitstream_restriction_flag &&
|
||||
h->avctx->has_b_frames < sps->num_reorder_frames) {
|
||||
h->avctx->has_b_frames = sps->num_reorder_frames;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user