Commit 7c45087b authored by Anton Khirnov's avatar Anton Khirnov

lavc: update the fallback versions of ff_thread_*

Fixes build without threads after
759001c5.
parent 19dd4017
...@@ -2315,26 +2315,26 @@ int ff_thread_ref_frame(ThreadFrame *dst, ThreadFrame *src) ...@@ -2315,26 +2315,26 @@ int ff_thread_ref_frame(ThreadFrame *dst, ThreadFrame *src)
#if !HAVE_THREADS #if !HAVE_THREADS
int ff_thread_get_buffer(AVCodecContext *avctx, AVFrame *f, int flags) int ff_thread_get_buffer(AVCodecContext *avctx, ThreadFrame *f, int flags)
{ {
f->owner = avctx; f->owner = avctx;
return ff_get_buffer(avctx, f, flags); return ff_get_buffer(avctx, f->f, flags);
} }
void ff_thread_release_buffer(AVCodecContext *avctx, AVFrame *f) void ff_thread_release_buffer(AVCodecContext *avctx, ThreadFrame *f)
{ {
av_frame_unref(f); av_frame_unref(f->f);
} }
void ff_thread_finish_setup(AVCodecContext *avctx) void ff_thread_finish_setup(AVCodecContext *avctx)
{ {
} }
void ff_thread_report_progress(AVFrame *f, int progress, int field) void ff_thread_report_progress(ThreadFrame *f, int progress, int field)
{ {
} }
void ff_thread_await_progress(AVFrame *f, int progress, int field) void ff_thread_await_progress(ThreadFrame *f, int progress, int field)
{ {
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment