[FFmpeg-cvslog] avcodec/mlpenc: Fix mixed declarations and code warning

Andreas Rheinhardt git at videolan.org
Thu Sep 9 13:39:41 EEST 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Thu Sep  9 00:00:51 2021 +0200| [bb9141cc1397960bbc869ac9df3bab15e2dc6458] | committer: Andreas Rheinhardt

avcodec/mlpenc: Fix mixed declarations and code warning

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bb9141cc1397960bbc869ac9df3bab15e2dc6458
---

 libavcodec/mlpenc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavcodec/mlpenc.c b/libavcodec/mlpenc.c
index 6d4a12ce3b..ef01c1d282 100644
--- a/libavcodec/mlpenc.c
+++ b/libavcodec/mlpenc.c
@@ -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;
 



More information about the ffmpeg-cvslog mailing list