Unified · Split
| @@ -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 | ||