mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-02 03:06:28 +02:00
h264-mt: handle NAL_DPAs before calling ff_thread_finish_setup
Since a NAL_DPA can start a new frame it has to be handled before ff_thread_finish_setup is called.
This commit is contained in:
parent
230acdde26
commit
27c8337e59
@ -3816,6 +3816,7 @@ static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size)
|
|||||||
case NAL_PPS:
|
case NAL_PPS:
|
||||||
nals_needed = nal_index;
|
nals_needed = nal_index;
|
||||||
break;
|
break;
|
||||||
|
case NAL_DPA:
|
||||||
case NAL_IDR_SLICE:
|
case NAL_IDR_SLICE:
|
||||||
case NAL_SLICE:
|
case NAL_SLICE:
|
||||||
init_get_bits(&hx->s.gb, ptr, bit_length);
|
init_get_bits(&hx->s.gb, ptr, bit_length);
|
||||||
|
Loading…
Reference in New Issue
Block a user