[FFmpeg-devel] [PATCH 3/3] lavc/mediacodecdec: fix size variable shadowing in ff_mediacodec_dec_decode

Matthieu Bouron matthieu.bouron at gmail.com
Thu Oct 6 15:31:57 EEST 2016


From: Matthieu Bouron <matthieu.bouron at stupeflix.com>

Fixes incompatible pointer type warning on 64-bit systems.
---
 libavcodec/mediacodecdec.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/libavcodec/mediacodecdec.c b/libavcodec/mediacodecdec.c
index 3d519ca..126de17 100644
--- a/libavcodec/mediacodecdec.c
+++ b/libavcodec/mediacodecdec.c
@@ -561,7 +561,6 @@ int ff_mediacodec_dec_decode(AVCodecContext *avctx, MediaCodecDecContext *s,
     }
 
     while (offset < pkt->size || (need_draining && !s->draining)) {
-        int size;
 
         index = ff_AMediaCodec_dequeueInputBuffer(codec, input_dequeue_timeout_us);
         if (ff_AMediaCodec_infoTryAgainLater(codec, index)) {
-- 
2.10.0



More information about the ffmpeg-devel mailing list