mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-01 22:16:42 +02:00
lavc: copy subtitle_header when copying context.
Fix trac ticket #2489.
This commit is contained in:
parent
276fcbde6c
commit
ceb33f3aee
@ -226,6 +226,7 @@ int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src)
|
|||||||
alloc_and_copy_or_fail(intra_matrix, 64 * sizeof(int16_t), 0);
|
alloc_and_copy_or_fail(intra_matrix, 64 * sizeof(int16_t), 0);
|
||||||
alloc_and_copy_or_fail(inter_matrix, 64 * sizeof(int16_t), 0);
|
alloc_and_copy_or_fail(inter_matrix, 64 * sizeof(int16_t), 0);
|
||||||
alloc_and_copy_or_fail(rc_override, src->rc_override_count * sizeof(*src->rc_override), 0);
|
alloc_and_copy_or_fail(rc_override, src->rc_override_count * sizeof(*src->rc_override), 0);
|
||||||
|
alloc_and_copy_or_fail(subtitle_header, src->subtitle_header_size, 1);
|
||||||
#undef alloc_and_copy_or_fail
|
#undef alloc_and_copy_or_fail
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user