Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-11-03 00:47:53 +0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-11-11 23:17:39 +0400
commite79da63282b354fb721ac4b763d268649f0efd76 (patch)
treeb94eb089fb4af731563344db0b738ca46bb12933 /libavcodec/dpcm.c
parent9d06037d48041ad8ccbae6c12aa9f3a313a89c4e (diff)
dpcm: remove unneeded buf_size==0 check.
It is already checked in avcodec_decode_audio3()
Diffstat (limited to 'libavcodec/dpcm.c')
-rw-r--r--libavcodec/dpcm.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavcodec/dpcm.c b/libavcodec/dpcm.c
index 6ba8ab13ce..f6531db28b 100644
--- a/libavcodec/dpcm.c
+++ b/libavcodec/dpcm.c
@@ -179,9 +179,6 @@ static int dpcm_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
int stereo = s->channels - 1;
int16_t *output_samples = data;
- if (!buf_size)
- return 0;
-
/* calculate output size */
switch(avctx->codec->id) {
case CODEC_ID_ROQ_DPCM: