You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/mlpenc: Fix mixed declarations and code warning
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -476,6 +476,7 @@ static av_cold int mlp_encode_init(AVCodecContext *avctx)
|
|||||||
{
|
{
|
||||||
static AVOnce init_static_once = AV_ONCE_INIT;
|
static AVOnce init_static_once = AV_ONCE_INIT;
|
||||||
MLPEncodeContext *ctx = avctx->priv_data;
|
MLPEncodeContext *ctx = avctx->priv_data;
|
||||||
|
RestartHeader *const rh = &ctx->restart_header;
|
||||||
unsigned int sum = 0;
|
unsigned int sum = 0;
|
||||||
size_t size;
|
size_t size;
|
||||||
int ret;
|
int ret;
|
||||||
@@ -674,8 +675,6 @@ static av_cold int mlp_encode_init(AVCodecContext *avctx)
|
|||||||
if (!ctx->decoding_params)
|
if (!ctx->decoding_params)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
RestartHeader *rh = &ctx->restart_header;
|
|
||||||
|
|
||||||
/* TODO see if noisegen_seed is really worth it. */
|
/* TODO see if noisegen_seed is really worth it. */
|
||||||
rh->noisegen_seed = 0;
|
rh->noisegen_seed = 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user