]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/rzpaenc: Remove set-but-unused variable
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 21 Aug 2020 22:17:49 +0000 (00:17 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 22 Aug 2020 07:23:30 +0000 (09:23 +0200)
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/rpzaenc.c

index 2d3876743f25c1f34fa7b8ace050c37f2a60418b..baf067c205701cdfd2dbc7775cf05881ba19e663 100644 (file)
@@ -643,8 +643,7 @@ post_skip :
         if (update_block_stats(s, &bi, &src_pixels[block_offset],
                                min_color, max_color,
                                total_rgb, &pixel_count, avg_color, 1)) {
-            int first_block_offset;
-            first_block_offset = prev_block_offset = block_offset;
+            prev_block_offset = block_offset;
 
             n_blocks = 1;