]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/8svx.c
Merge commit '2f172f1ae984b763c06069adb51d0053b3834f4b'
[ffmpeg] / libavcodec / 8svx.c
index eff525c951e098e4f5540cf3e616afac82a0f1d7..26496e506c7b3cd85d5e5aee803eef735501dbbc 100644 (file)
@@ -101,7 +101,7 @@ static int eightsvx_decode_frame(AVCodecContext *avctx, void *data,
         }
         if (avpkt->size < (hdr_size + 1) * avctx->channels) {
             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;
@@ -124,7 +124,7 @@ static int eightsvx_decode_frame(AVCodecContext *avctx, void *data,
     }
     if (!esc->data[0]) {
         av_log(avctx, AV_LOG_ERROR, "unexpected empty packet\n");
-        return AVERROR(EINVAL);
+        return AVERROR_INVALIDDATA;
     }
 
     /* decode next piece of data from the buffer */