avcodec/hevc/sei: remove unnecessary inline function

It's a pointless indirection.

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2024-11-11 20:01:55 -03:00
parent 2d3281b9dd
commit 322b240cea
2 changed files with 1 additions and 7 deletions

View File

@ -129,12 +129,6 @@ struct H264ParamSets;
int ff_h264_sei_decode(H264SEIContext *h, GetBitContext *gb, int ff_h264_sei_decode(H264SEIContext *h, GetBitContext *gb,
const struct H264ParamSets *ps, void *logctx); 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. * Reset SEI values at the beginning of the frame.
*/ */

View File

@ -437,7 +437,7 @@ int ff_h264_update_thread_context(AVCodecContext *dst,
h->frame_recovered = h1->frame_recovered; 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) if (ret < 0)
return ret; return ret;