mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 18:32:22 +00:00
avcodec/mlpenc: Fix mixed declarations and code warning
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
20f9cfb3e3
commit
bb9141cc13
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user