Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2013-04-23 22:18:00 +0400
committerNicolas George <nicolas.george@normalesup.org>2013-05-01 13:56:34 +0400
commitceb33f3aee157ea7d7be33c6df602e6be9d23536 (patch)
tree0fb042849945eb3439be5a8cfd50a6e304e6a648 /libavcodec/options.c
parent276fcbde6c5532a02aacd2e2d31beaa8d4e79a8a (diff)
lavc: copy subtitle_header when copying context.
Fix trac ticket #2489.
Diffstat (limited to 'libavcodec/options.c')
-rw-r--r--libavcodec/options.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/options.c b/libavcodec/options.c
index e1349dd3a8..fb803f3fd6 100644
--- a/libavcodec/options.c
+++ b/libavcodec/options.c
@@ -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(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(subtitle_header, src->subtitle_header_size, 1);
#undef alloc_and_copy_or_fail
return 0;