summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-09 00:00:51 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-09 12:07:06 +0200
commitbb9141cc1397960bbc869ac9df3bab15e2dc6458 (patch)
treeca9d61ac7a3abb92155270dcf5c0a438f5367b4b /libavcodec
parent20f9cfb3e348043bcf77cfd82d7ba70ef00ecbe5 (diff)
avcodec/mlpenc: Fix mixed declarations and code warning
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mlpenc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/mlpenc.c b/libavcodec/mlpenc.c
index 6d4a12ce3b..ef01c1d282 100644
--- a/libavcodec/mlpenc.c
+++ b/libavcodec/mlpenc.c
@@ -476,6 +476,7 @@ static av_cold int mlp_encode_init(AVCodecContext *avctx)
{
static AVOnce init_static_once = AV_ONCE_INIT;
MLPEncodeContext *ctx = avctx->priv_data;
+ RestartHeader *const rh = &ctx->restart_header;
unsigned int sum = 0;
size_t size;
int ret;
@@ -674,8 +675,6 @@ static av_cold int mlp_encode_init(AVCodecContext *avctx)
if (!ctx->decoding_params)
return AVERROR(ENOMEM);
- RestartHeader *rh = &ctx->restart_header;
-
/* TODO see if noisegen_seed is really worth it. */
rh->noisegen_seed = 0;