summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/pcm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c
index 334e443624..d91113d781 100644
--- a/libavcodec/pcm.c
+++ b/libavcodec/pcm.c
@@ -174,7 +174,6 @@ static int pcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
#endif /* HAVE_BIGENDIAN */
case AV_CODEC_ID_PCM_U8:
memcpy(dst, samples, n * sample_size);
- dst += n * sample_size;
break;
case AV_CODEC_ID_PCM_ALAW:
for (; n > 0; n--) {