Skip to content
Snippets Groups Projects
Commit 50c6bffb authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

Merge commit '74512f7e'


* commit '74512f7e':
  8svx: Return proper error codes

Conflicts:
	libavcodec/8svx.c

Merged-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parents 098af260 74512f7e
No related branches found
No related tags found
No related merge requests found
...@@ -101,7 +101,7 @@ static int eightsvx_decode_frame(AVCodecContext *avctx, void *data, ...@@ -101,7 +101,7 @@ static int eightsvx_decode_frame(AVCodecContext *avctx, void *data,
} }
if (avpkt->size < (hdr_size + 1) * avctx->channels) { if (avpkt->size < (hdr_size + 1) * avctx->channels) {
av_log(avctx, AV_LOG_ERROR, "packet size is too small\n"); av_log(avctx, AV_LOG_ERROR, "packet size is too small\n");
return AVERROR(EINVAL); return AVERROR_INVALIDDATA;
} }
esc->fib_acc[0] = avpkt->data[1] + 128; esc->fib_acc[0] = avpkt->data[1] + 128;
...@@ -124,7 +124,7 @@ static int eightsvx_decode_frame(AVCodecContext *avctx, void *data, ...@@ -124,7 +124,7 @@ static int eightsvx_decode_frame(AVCodecContext *avctx, void *data,
} }
if (!esc->data[0]) { if (!esc->data[0]) {
av_log(avctx, AV_LOG_ERROR, "unexpected empty packet\n"); av_log(avctx, AV_LOG_ERROR, "unexpected empty packet\n");
return AVERROR(EINVAL); return AVERROR_INVALIDDATA;
} }
/* decode next piece of data from the buffer */ /* decode next piece of data from the buffer */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment