aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-11-23 15:32:50 -0500
committerJustin Ruggles <justin.ruggles@gmail.com>2011-11-23 16:26:15 -0500
commitc1848c4b26fda0c5060dceef6c45666e31345032 (patch)
tree3668293b3ddeb4a9fb582a3bbfa0a4b19bd0e98f
parent06d4e2fa5ae6d9dfe85d461194d38759acffb9f8 (diff)
downloadffmpeg-c1848c4b26fda0c5060dceef6c45666e31345032.tar.gz
pcmdec: remove unneeded resetting of samples pointer
-rw-r--r--libavcodec/pcm.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c
index c9eb543e92..0e9e685989 100644
--- a/libavcodec/pcm.c
+++ b/libavcodec/pcm.c
@@ -382,7 +382,6 @@ static int pcm_decode_frame(AVCodecContext *avctx,
#endif /* HAVE_BIGENDIAN */
case CODEC_ID_PCM_U8:
memcpy(samples, src, n*sample_size);
- samples += n * sample_size;
break;
case CODEC_ID_PCM_ZORK:
for (; n > 0; n--) {
@@ -428,7 +427,6 @@ static int pcm_decode_frame(AVCodecContext *avctx,
}
break;
}
- samples = (uint8_t *) dst_int32_t;
break;
}
case CODEC_ID_PCM_LXF:
@@ -451,7 +449,6 @@ static int pcm_decode_frame(AVCodecContext *avctx,
((src8[2] & 0xF0) << 8) | (src8[4] << 4) | (src8[3] >> 4);
}
}
- samples = (uint8_t *) dst_int32_t;
break;
}
default: