History

avcodec/h264dec: Skip late SEI

Fixes: Race condition Fixes: clusterfuzz-testcase-minimized-mediasource_MP2T_AVC_pipeline_integration_fuzzer-6282675434094592

Michael Niedermayer committed 4 years ago

Commit f7dd4081 parent 1537f401 file · +4 −0Browse files

Unified · Split

libavcodec/h264dec.c+4−0
@@ -672,6 +672,10 @@ static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size) · 671 unmodified lines
672 avpriv_request_sample(avctx, "data partitioning");672 avpriv_request_sample(avctx, "data partitioning");
673 break;673 break;
674 case H264_NAL_SEI:674 case H264_NAL_SEI:
675 if (h->setup_finished) {
676 avpriv_request_sample(avctx, "Late SEI");
677 break;
678 }
675 ret = ff_h264_sei_decode(&h->sei, &nal->gb, &h->ps, avctx);679 ret = ff_h264_sei_decode(&h->sei, &nal->gb, &h->ps, avctx);
676 h->has_recovery_point = h->has_recovery_point || h->sei.recovery_point.recovery_frame_cnt != -1;680 h->has_recovery_point = h->has_recovery_point || h->sei.recovery_point.recovery_frame_cnt != -1;
677 if (avctx->debug & FF_DEBUG_GREEN_MD)681 if (avctx->debug & FF_DEBUG_GREEN_MD)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t