History

avcodec/mlpenc: Fix mixed declarations and code warning

Andreas Rheinhardt committed 5 years ago

Commit bb9141c1 parent 20f9cfb1 file · +1 −2Browse files

Unified · Split

libavcodec/mlpenc.c+1−2
@@ -476,6 +476,7 @@ static av_cold int mlp_encode_init(AVCodecContext *avctx) · 475 unmodified lines
476{476{
477 static AVOnce init_static_once = AV_ONCE_INIT;477 static AVOnce init_static_once = AV_ONCE_INIT;
478 MLPEncodeContext *ctx = avctx->priv_data;478 MLPEncodeContext *ctx = avctx->priv_data;
479 RestartHeader *const rh = &ctx->restart_header;
479 unsigned int sum = 0;480 unsigned int sum = 0;
480 size_t size;481 size_t size;
481 int ret;482 int ret;
@@ -674,8 +675,6 @@ static av_cold int mlp_encode_init(AVCodecContext *avctx) · 192 unmodified lines
674 if (!ctx->decoding_params)675 if (!ctx->decoding_params)
675 return AVERROR(ENOMEM);676 return AVERROR(ENOMEM);
676 677
677 RestartHeader *rh = &ctx->restart_header;
678
679 /* TODO see if noisegen_seed is really worth it. */678 /* TODO see if noisegen_seed is really worth it. */
680 rh->noisegen_seed = 0;679 rh->noisegen_seed = 0;
681 680

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t