[FFmpeg-cvslog] avcodec/pngenc: Don't cast const away unnecessarily
Andreas Rheinhardt
git at videolan.org
Sun Jul 31 02:56:05 EEST 2022
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Tue Jul 26 20:19:06 2022 +0200| [dd20ebb2ca2a572557de612eef2df1a57738efde] | committer: Andreas Rheinhardt
avcodec/pngenc: Don't cast const away unnecessarily
Possible since 529a9893d769f381b72785c500662be2020da5fe.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dd20ebb2ca2a572557de612eef2df1a57738efde
---
libavcodec/pngenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/pngenc.c b/libavcodec/pngenc.c
index 8ef863a6c1..c86cf5a862 100644
--- a/libavcodec/pngenc.c
+++ b/libavcodec/pngenc.c
@@ -1056,7 +1056,7 @@ static int encode_apng(AVCodecContext *avctx, AVPacket *pkt,
}
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