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