]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/libxvid: Remove set-but-unused variable
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 19 Mar 2021 00:49:04 +0000 (01:49 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 19 Mar 2021 01:25:16 +0000 (02:25 +0100)
Set-but-unused since 2101b99777860c853ca2321031eb3f4047dc5894.

Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/libxvid.c

index 25b0025d5f2dfa282752fbb4fd4661aadbbd6927..50601807a7f328298268e21bea2fae44a5942389 100644 (file)
@@ -685,7 +685,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
     if (x->quicktime_format) {
         AVFrame *picture;
         AVPacket *packet;
-        int size, got_packet, ret;
+        int size, got_packet;
 
         packet = av_packet_alloc();
         if (!packet)
@@ -716,7 +716,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
         picture->data[2] = picture->data[1] + size / 4;
         memset(picture->data[0], 0, size);
         memset(picture->data[1], 128, size / 2);
-        ret = xvid_encode_frame(avctx, packet, picture, &got_packet);
+        xvid_encode_frame(avctx, packet, picture, &got_packet);
         av_packet_free(&packet);
         av_free(picture->data[0]);
         av_frame_free(&picture);