avcodec/utils: make the src paramater for ff_thread_ref_frame const

Signed-off-by: James Almer <jamrial@gmail.com>
pull/350/head
James Almer 4 years ago
parent 0963be71ec
commit 6a5b38ef44
  1. 2
      libavcodec/thread.h
  2. 2
      libavcodec/utils.c

@ -129,7 +129,7 @@ int ff_thread_get_buffer(AVCodecContext *avctx, ThreadFrame *f, int flags);
*/
void ff_thread_release_buffer(AVCodecContext *avctx, ThreadFrame *f);
int ff_thread_ref_frame(ThreadFrame *dst, ThreadFrame *src);
int ff_thread_ref_frame(ThreadFrame *dst, const ThreadFrame *src);
int ff_thread_init(AVCodecContext *s);
int ff_slice_thread_execute_with_mainfunc(AVCodecContext *avctx,

@ -1852,7 +1852,7 @@ unsigned int avpriv_toupper4(unsigned int x)
((unsigned)av_toupper((x >> 24) & 0xFF) << 24);
}
int ff_thread_ref_frame(ThreadFrame *dst, ThreadFrame *src)
int ff_thread_ref_frame(ThreadFrame *dst, const ThreadFrame *src)
{
int ret;

Loading…
Cancel
Save