[FFmpeg-cvslog] avcodec/fitsenc: Don't cast const away unnecessarily

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


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Mon Jul 25 21:19:53 2022 +0200| [021336317584fdf51e26b8eb205e27c955ab9292] | committer: Andreas Rheinhardt

avcodec/fitsenc: Don't cast const away unnecessarily

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

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

 libavcodec/fitsenc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavcodec/fitsenc.c b/libavcodec/fitsenc.c
index 5e9100be85..6e0597c8ca 100644
--- a/libavcodec/fitsenc.c
+++ b/libavcodec/fitsenc.c
@@ -36,9 +36,8 @@
 #include "encode.h"
 
 static int fits_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
-                            const AVFrame *pict, int *got_packet)
+                             const AVFrame *p, int *got_packet)
 {
-    AVFrame * const p = (AVFrame *)pict;
     uint8_t *bytestream, *ptr;
     const uint16_t flip = (1 << 15);
     uint64_t data_size = 0, padded_data_size = 0;



More information about the ffmpeg-cvslog mailing list