This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
avutil/crc: use EINVAL instead of -1 for the return code of av_crc_init()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.0
Michael Niedermayer
10 years ago
parent
c980c5e54d
commit
d6f6e98eb1
1 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
libavutil/crc.c
+ 2
- 2
libavutil/crc.c
View 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) {
Write
Preview
Loading…
Cancel
Save