OSDN Git Service

apedec: remove pointless increment of 'buf'
authorJustin Ruggles <justin.ruggles@gmail.com>
Tue, 11 Oct 2011 17:25:48 +0000 (13:25 -0400)
committerJustin Ruggles <justin.ruggles@gmail.com>
Fri, 28 Oct 2011 15:47:28 +0000 (11:47 -0400)
The variable is not used anymore at that point.

libavcodec/apedec.c

index 9274b23..4e09871 100644 (file)
@@ -841,7 +841,6 @@ static int ape_decode_frame(AVCodecContext *avctx,
         }
         s->ptr += n;
 
-        buf += 4;
         if (!nblocks || nblocks > INT_MAX) {
             av_log(avctx, AV_LOG_ERROR, "Invalid sample count: %u.\n", nblocks);
             return AVERROR_INVALIDDATA;