[FFmpeg-cvslog] apedec: remove pointless increment of 'buf'

Justin Ruggles git at videolan.org
Sat Oct 29 02:31:38 CEST 2011


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Tue Oct 11 13:25:48 2011 -0400| [89ec474a437770150c048d0db631b0bee4251b8a] | committer: Justin Ruggles

apedec: remove pointless increment of 'buf'

The variable is not used anymore at that point.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=89ec474a437770150c048d0db631b0bee4251b8a
---

 libavcodec/apedec.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/libavcodec/apedec.c b/libavcodec/apedec.c
index 9274b23..4e09871 100644
--- a/libavcodec/apedec.c
+++ b/libavcodec/apedec.c
@@ -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;



More information about the ffmpeg-cvslog mailing list