mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
h264: document h264_set_parameter_from_sps() re-calling behavior
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
31c4a1b7d0
commit
2d372d3a3f
@ -1224,6 +1224,7 @@ static int decode_update_thread_context(AVCodecContext *dst,
|
|||||||
/* copy block_offset since frame_start may not be called */
|
/* copy block_offset since frame_start may not be called */
|
||||||
memcpy(h->block_offset, h1->block_offset, sizeof(h->block_offset));
|
memcpy(h->block_offset, h1->block_offset, sizeof(h->block_offset));
|
||||||
h264_set_parameter_from_sps(h);
|
h264_set_parameter_from_sps(h);
|
||||||
|
//Note we set context_reinitialized which will cause h264_set_parameter_from_sps to be reexecuted
|
||||||
h->cur_chroma_format_idc = h1->cur_chroma_format_idc;
|
h->cur_chroma_format_idc = h1->cur_chroma_format_idc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user