From 8cd2e0c075d80f2f794d48a9e36ffa1fb02bffd3 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Mon, 11 Sep 2023 22:01:08 +0200 Subject: [PATCH] avcodec/fraps: remove extra new lines and not needed cast --- libavcodec/fraps.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libavcodec/fraps.c b/libavcodec/fraps.c index b410646646..bed244e4e9 100644 --- a/libavcodec/fraps.c +++ b/libavcodec/fraps.c @@ -56,7 +56,6 @@ typedef struct FrapsContext { int tmpbuf_size; } FrapsContext; - /** * initializes decoder * @param avctx codec context @@ -323,7 +322,6 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *f, return buf_size; } - /** * closes decoder * @param avctx codec context @@ -331,13 +329,12 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *f, */ static av_cold int decode_end(AVCodecContext *avctx) { - FrapsContext *s = (FrapsContext*)avctx->priv_data; + FrapsContext *s = avctx->priv_data; av_freep(&s->tmpbuf); return 0; } - const FFCodec ff_fraps_decoder = { .p.name = "fraps", CODEC_LONG_NAME("Fraps"),