Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2022-02-17 01:36:46 +0300
committerRonald S. Bultje <rsbultje@gmail.com>2022-02-17 02:00:20 +0300
commit239c951f2e2767770a08a9d728847da632696533 (patch)
tree355f55f1416e2ae5f288d3d235b13755c7971481 /src
parentcae2c4f0bdd5285a2ee13e385f4474729948da10 (diff)
decode.c: fix return value on bitstream decoding errors
Change ENOMEM into EINVAL, since at this point memory allocation errors don't occur, and bitstream decoding errors are not fatal.
Diffstat (limited to 'src')
-rw-r--r--src/decode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decode.c b/src/decode.c
index cec91e9..5592d78 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -3356,7 +3356,7 @@ error:
int dav1d_decode_frame_main(Dav1dFrameContext *const f) {
const Dav1dContext *const c = f->c;
- int retval = DAV1D_ERR(ENOMEM);
+ int retval = DAV1D_ERR(EINVAL);
assert(f->c->n_tc == 1);