aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-26 20:19:06 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-31 01:17:18 +0200
commitdd20ebb2ca2a572557de612eef2df1a57738efde (patch)
tree9dbc72f8f5c5e3dd86f972c7473753547ee39e31 /libavcodec
parent7e41f95dce6390f39a5134a25213828ed65fac6b (diff)
downloadffmpeg-dd20ebb2ca2a572557de612eef2df1a57738efde.tar.gz
avcodec/pngenc: Don't cast const away unnecessarily
Possible since 529a9893d769f381b72785c500662be2020da5fe. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/pngenc.c2
1 files changed, 1 insertions, 1 deletions
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;