diff mbox series

[FFmpeg-devel,39/39] lavc/hevcdec: constify source frame in hevc_ref_frame()

Message ID 20240607130135.9088-39-anton@khirnov.net
State New
Headers show
Series [FFmpeg-devel,01/39] lavc/hevcdec: do not free SliceHeader arrays in pic_arrays_free() | expand

Commit Message

Anton Khirnov June 7, 2024, 1:01 p.m. UTC
---
 libavcodec/hevc/hevcdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Vittorio Giovara June 8, 2024, 12:48 p.m. UTC | #1
On Fri, Jun 7, 2024 at 3:19 PM Anton Khirnov <anton@khirnov.net> wrote:

> ---
>  libavcodec/hevc/hevcdec.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavcodec/hevc/hevcdec.c b/libavcodec/hevc/hevcdec.c
> index 5fc55d5de9..88f2bcecad 100644
> --- a/libavcodec/hevc/hevcdec.c
> +++ b/libavcodec/hevc/hevcdec.c
> @@ -3449,7 +3449,7 @@ static int hevc_decode_frame(AVCodecContext *avctx,
> AVFrame *rframe,
>      return avpkt->size;
>  }
>
> -static int hevc_ref_frame(HEVCFrame *dst, HEVCFrame *src)
> +static int hevc_ref_frame(HEVCFrame *dst, const HEVCFrame *src)
>  {
>      int ret;
>

Set overall ok
diff mbox series

Patch

diff --git a/libavcodec/hevc/hevcdec.c b/libavcodec/hevc/hevcdec.c
index 5fc55d5de9..88f2bcecad 100644
--- a/libavcodec/hevc/hevcdec.c
+++ b/libavcodec/hevc/hevcdec.c
@@ -3449,7 +3449,7 @@  static int hevc_decode_frame(AVCodecContext *avctx, AVFrame *rframe,
     return avpkt->size;
 }
 
-static int hevc_ref_frame(HEVCFrame *dst, HEVCFrame *src)
+static int hevc_ref_frame(HEVCFrame *dst, const HEVCFrame *src)
 {
     int ret;