avcodec/threadframe: Move ff_thread_can_start_frame() to thread.h

It does not use ThreadFrames at all, so thread.h is the correct place.
bcb0faeaba was wrong.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2023-09-14 17:17:06 +02:00
parent bca2651a32
commit 1982113467
3 changed files with 3 additions and 2 deletions

View File

@ -37,6 +37,7 @@
#include "mpegvideo.h"
#include "mpegvideodec.h"
#include "mpeg4videodec.h"
#include "thread.h"
#include "threadframe.h"
#include "wmv2dec.h"

View File

@ -52,6 +52,8 @@ void ff_thread_flush(AVCodecContext *avctx);
int ff_thread_decode_frame(AVCodecContext *avctx, AVFrame *picture,
int *got_picture_ptr, AVPacket *avpkt);
int ff_thread_can_start_frame(AVCodecContext *avctx);
/**
* If the codec defines update_thread_context(), call this
* when they are ready for the next thread to start decoding

View File

@ -87,6 +87,4 @@ int ff_thread_ref_frame(ThreadFrame *dst, const ThreadFrame *src);
int ff_thread_replace_frame(AVCodecContext *avctx, ThreadFrame *dst,
const ThreadFrame *src);
int ff_thread_can_start_frame(AVCodecContext *avctx);
#endif