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 a68aa951b21b8b7db0a5200bcfebc0a077a5f094) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
0a27f1d331
commit
148a3ed506
@ -1551,7 +1551,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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user