[FFmpeg-devel] [PATCH] libavcodec/decode: Mark decode_simple_internal() as inline

Michael Niedermayer michael at niedermayer.cc
Tue May 12 01:46:35 EEST 2020


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 <michael at niedermayer.cc>
---
 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;
-- 
2.17.1



More information about the ffmpeg-devel mailing list