diff mbox series

[FFmpeg-devel,v2,3/5] avformat/mov: fix av_freep for dovi pointer

Message ID 1588252751-4472-1-git-send-email-lance.lmwang@gmail.com
State Accepted
Commit 1112823962ab2e881359e5d60d706ba322ea8551
Headers show
Series None | expand

Commit Message

Lance Wang April 30, 2020, 1:19 p.m. UTC
From: Limin Wang <lance.lmwang@gmail.com>

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
---
 libavformat/mov.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Andreas Rheinhardt April 30, 2020, 1:41 p.m. UTC | #1
lance.lmwang@gmail.com:
> From: Limin Wang <lance.lmwang@gmail.com>
> 
> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
> ---
>  libavformat/mov.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavformat/mov.c b/libavformat/mov.c
> index 3d6fef6..ad718cd 100644
> --- a/libavformat/mov.c
> +++ b/libavformat/mov.c
> @@ -6827,7 +6827,7 @@ static int mov_read_dvcc_dvvc(MOVContext *c, AVIOContext *pb, MOVAtom atom)
>      ret = av_stream_add_side_data(st, AV_PKT_DATA_DOVI_CONF,
>                                    (uint8_t *)dovi, dovi_size);
>      if (ret < 0) {
> -        av_freep(dovi);
> +        av_free(dovi);
>          return ret;
>      }
>  
> 
LGTM.

- Andreas
diff mbox series

Patch

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 3d6fef6..ad718cd 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -6827,7 +6827,7 @@  static int mov_read_dvcc_dvvc(MOVContext *c, AVIOContext *pb, MOVAtom atom)
     ret = av_stream_add_side_data(st, AV_PKT_DATA_DOVI_CONF,
                                   (uint8_t *)dovi, dovi_size);
     if (ret < 0) {
-        av_freep(dovi);
+        av_free(dovi);
         return ret;
     }