]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/mediacodecdec: remove unneeded else block in ff_mediacodec_dec_send()
authorMatthieu Bouron <matthieu.bouron@gmail.com>
Wed, 24 Apr 2019 07:59:29 +0000 (09:59 +0200)
committerMatthieu Bouron <matthieu.bouron@gmail.com>
Thu, 13 Jun 2019 09:41:18 +0000 (11:41 +0200)
libavcodec/mediacodecdec_common.c

index f7a06cdc6d5f7d90b72af93406809a38ba57d58f..f90e2f1a230ac383b5bf613acf8d813a6764196b 100644 (file)
@@ -632,7 +632,8 @@ int ff_mediacodec_dec_send(AVCodecContext *avctx, MediaCodecDecContext *s,
 
             s->draining = 1;
             return 0;
-        } else {
+        }
+
             size = FFMIN(pkt->size - offset, size);
             memcpy(data, pkt->data + offset, size);
             offset += size;
@@ -645,7 +646,6 @@ int ff_mediacodec_dec_send(AVCodecContext *avctx, MediaCodecDecContext *s,
 
             av_log(avctx, AV_LOG_TRACE,
                    "Queued input buffer %zd size=%zd ts=%"PRIi64"\n", index, size, pts);
-        }
     }
 
     if (offset == 0)