Fixes: Race condition Fixes: clusterfuzz-testcase-minimized-mediasource_MP2T_AVC_pipeline_integration_fuzzer-6282675434094592
Unified · Split
| @@ -672,6 +672,10 @@ static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size) · 671 unmodified lines | ||
| 672 | 672 | avpriv_request_sample(avctx, "data partitioning"); |
| 673 | 673 | break; |
| 674 | 674 | case H264_NAL_SEI: |
| 675 | + if (h->setup_finished) { | |
| 676 | + avpriv_request_sample(avctx, "Late SEI"); | |
| 677 | + break; | |
| 678 | + } | |
| 675 | 679 | ret = ff_h264_sei_decode(&h->sei, &nal->gb, &h->ps, avctx); |
| 676 | 680 | h->has_recovery_point = h->has_recovery_point || h->sei.recovery_point.recovery_frame_cnt != -1; |
| 677 | 681 | if (avctx->debug & FF_DEBUG_GREEN_MD) |