Browse Source

ws-snd1: return meaningful error code

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n1.1
Paul B Mahol 12 years ago
parent
commit
e4af8ed8c7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/ws-snd1.c

+ 1
- 1
libavcodec/ws-snd1.c View File

@@ -84,7 +84,7 @@ static int ws_snd_decode_frame(AVCodecContext *avctx, void *data,

if (in_size > buf_size) {
av_log(avctx, AV_LOG_ERROR, "Frame data is larger than input buffer\n");
return -1;
return AVERROR_INVALIDDATA;
}

/* get output buffer */


Loading…
Cancel
Save