]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/crc.c
avcodec/libzvbi-teletextdec: Remove unused variable ret
[ffmpeg] / libavutil / crc.c
index e432843dfd7668c25bde0e0d145dfd65b840b520..5a1ddf092b55ae60578d41ce9bc590f48b36a47d 100644 (file)
@@ -312,9 +312,9 @@ int av_crc_init(AVCRC *ctx, int le, int bits, uint32_t poly, int ctx_size)
     uint32_t c;
 
     if (bits < 8 || bits > 32 || poly >= (1LL << bits))
-        return -1;
+        return AVERROR(EINVAL);
     if (ctx_size != sizeof(AVCRC) * 257 && ctx_size != sizeof(AVCRC) * 1024)
-        return -1;
+        return AVERROR(EINVAL);
 
     for (i = 0; i < 256; i++) {
         if (le) {