From 19738b1bc2e2700d9f589fb9d1d1d10e2bbf3d5e Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 11 May 2020 23:58:28 +0200 Subject: [PATCH] libavcodec/decode: Mark decode_simple_internal() as inline This was suggested in https://github.com/google/oss-fuzz/issues/3787 to reduce the grouping errors by oss-fuzz Signed-off-by: Michael Niedermayer --- libavcodec/decode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/decode.c b/libavcodec/decode.c index 8102cf40de..48a61d5419 100644 --- a/libavcodec/decode.c +++ b/libavcodec/decode.c @@ -308,7 +308,7 @@ static int64_t guess_correct_pts(AVCodecContext *ctx, * returning any output, so this function needs to be called in a loop until it * returns EAGAIN. **/ -static int decode_simple_internal(AVCodecContext *avctx, AVFrame *frame) +static inline int decode_simple_internal(AVCodecContext *avctx, AVFrame *frame) { AVCodecInternal *avci = avctx->internal; DecodeSimpleContext *ds = &avci->ds;