diff options
author | James Almer <jamrial@gmail.com> | 2024-11-11 20:01:55 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2024-11-13 12:49:52 -0300 |
commit | 322b240cea7978ad38a621cb35efc46c8977f146 (patch) | |
tree | 55421e639d7926aa0d927a7fad9b841089fe937e /libavcodec | |
parent | 2d3281b9dd040a2cc5b0eccb6d8ccc2900a06246 (diff) | |
download | ffmpeg-322b240cea7978ad38a621cb35efc46c8977f146.tar.gz |
avcodec/hevc/sei: remove unnecessary inline function
It's a pointless indirection.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/h264_sei.h | 6 | ||||
-rw-r--r-- | libavcodec/h264_slice.c | 2 |
2 files changed, 1 insertions, 7 deletions
diff --git a/libavcodec/h264_sei.h b/libavcodec/h264_sei.h index bb9275e569..8c8f6e6c73 100644 --- a/libavcodec/h264_sei.h +++ b/libavcodec/h264_sei.h @@ -129,12 +129,6 @@ struct H264ParamSets; int ff_h264_sei_decode(H264SEIContext *h, GetBitContext *gb, const struct H264ParamSets *ps, void *logctx); -static inline int ff_h264_sei_ctx_replace(H264SEIContext *dst, - const H264SEIContext *src) -{ - return ff_h2645_sei_ctx_replace(&dst->common, &src->common); -} - /** * Reset SEI values at the beginning of the frame. */ diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c index 08376ffa6d..c35ad9b910 100644 --- a/libavcodec/h264_slice.c +++ b/libavcodec/h264_slice.c @@ -437,7 +437,7 @@ int ff_h264_update_thread_context(AVCodecContext *dst, h->frame_recovered = h1->frame_recovered; - ret = ff_h264_sei_ctx_replace(&h->sei, &h1->sei); + ret = ff_h2645_sei_ctx_replace(&h->sei.common, &h1->sei.common); if (ret < 0) return ret; |