diff options
author | James Almer <jamrial@gmail.com> | 2021-04-10 16:10:11 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-04-14 20:07:52 -0300 |
commit | 42551a3407b0619c97cd4365bc277682c40234c3 (patch) | |
tree | fb011a5190552afcd7df7f0933342d18d0e83283 /libavcodec/h264_slice.c | |
parent | 82ebe0c7968262c7e27700b93bc58be0d7228458 (diff) | |
download | ffmpeg-42551a3407b0619c97cd4365bc277682c40234c3.tar.gz |
avcodec/h264dec: update exported AVOptions in the user-facing context
Based on a patch by Hendrik Leppkes.
Fixes ticket #9176.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/h264_slice.c')
-rw-r--r-- | libavcodec/h264_slice.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c index 62f7a61aed..9c2301d7e0 100644 --- a/libavcodec/h264_slice.c +++ b/libavcodec/h264_slice.c @@ -464,6 +464,18 @@ int ff_h264_update_thread_context(AVCodecContext *dst, return err; } +int ff_h264_update_thread_context_for_user(AVCodecContext *dst, + const AVCodecContext *src) +{ + H264Context *h = dst->priv_data; + const H264Context *h1 = src->priv_data; + + h->is_avc = h1->is_avc; + h->nal_length_size = h1->nal_length_size; + + return 0; +} + static int h264_frame_start(H264Context *h) { H264Picture *pic; |