summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-25 21:19:53 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-31 01:10:17 +0200
commit021336317584fdf51e26b8eb205e27c955ab9292 (patch)
treef11bf61d7153805fc1ba8e37d93acb56fc7f0c8d
parent90c38612f8265d3751afa8d3f885023e472560c4 (diff)
avcodec/fitsenc: Don't cast const away unnecessarily
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavcodec/fitsenc.c3
1 files changed, 1 insertions, 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;