diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2022-02-17 01:36:46 +0300 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2022-02-17 02:00:20 +0300 |
commit | 239c951f2e2767770a08a9d728847da632696533 (patch) | |
tree | 355f55f1416e2ae5f288d3d235b13755c7971481 /src | |
parent | cae2c4f0bdd5285a2ee13e385f4474729948da10 (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.c | 2 |
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); |