[FFmpeg-cvslog] avcodec/gif: Remove redundant cast

Andreas Rheinhardt git at videolan.org
Sun Jul 31 02:55:44 EEST 2022


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Mon Jul 25 21:13:05 2022 +0200| [90c38612f8265d3751afa8d3f885023e472560c4] | committer: Andreas Rheinhardt

avcodec/gif: Remove redundant cast

Possible since 529a9893d769f381b72785c500662be2020da5fe.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=90c38612f8265d3751afa8d3f885023e472560c4
---

 libavcodec/gif.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/gif.c b/libavcodec/gif.c
index 4904f791ef..8e84b79b8c 100644
--- a/libavcodec/gif.c
+++ b/libavcodec/gif.c
@@ -508,7 +508,7 @@ static int gif_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
 
     if (!s->image) {
         av_frame_unref(s->last_frame);
-        ret = av_frame_ref(s->last_frame, (AVFrame*)pict);
+        ret = av_frame_ref(s->last_frame, pict);
         if (ret < 0)
             return ret;
     }



More information about the ffmpeg-cvslog mailing list