It is already checked in avcodec_decode_audio3()
---
libavcodec/dpcm.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/libavcodec/dpcm.c b/libavcodec/dpcm.c
index 6ba8ab1..f6531db 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:
--
1.7.1
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel