diff mbox series

[FFmpeg-devel] avcodec/utils: make the src paramater for ff_thread_ref_frame const

Message ID 20200910133820.3241-1-jamrial@gmail.com
State Accepted
Commit 6a5b38ef449558c174c269d1e3a37b829771c4b7
Headers show
Series [FFmpeg-devel] avcodec/utils: make the src paramater for ff_thread_ref_frame const
Related show

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

James Almer Sept. 10, 2020, 1:38 p.m. UTC
Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavcodec/thread.h | 2 +-
 libavcodec/utils.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

James Almer Sept. 11, 2020, 1:35 p.m. UTC | #1
On 9/10/2020 10:38 AM, James Almer wrote:
> Signed-off-by: James Almer <jamrial@gmail.com>
> ---
>  libavcodec/thread.h | 2 +-
>  libavcodec/utils.c  | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/libavcodec/thread.h b/libavcodec/thread.h
> index 540135fbc9..87bf154da9 100644
> --- a/libavcodec/thread.h
> +++ b/libavcodec/thread.h
> @@ -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,
> diff --git a/libavcodec/utils.c b/libavcodec/utils.c
> index 2e5185f364..f0a41c99b5 100644
> --- a/libavcodec/utils.c
> +++ b/libavcodec/utils.c
> @@ -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;

Will apply.
diff mbox series

Patch

diff --git a/libavcodec/thread.h b/libavcodec/thread.h
index 540135fbc9..87bf154da9 100644
--- a/libavcodec/thread.h
+++ b/libavcodec/thread.h
@@ -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,
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 2e5185f364..f0a41c99b5 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -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;