[FFmpeg-devel] [PATCH v2 3/8] avcodec/dovi_rpu: switch to AVERROR_INVALIDDATA
Niklas Haas
ffmpeg at haasn.xyz
Sat Mar 23 21:19:52 EET 2024
From: Niklas Haas <git at haasn.dev>
Instead of AVERROR(EINVAL)
---
libavcodec/dovi_rpu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/dovi_rpu.c b/libavcodec/dovi_rpu.c
index c84a942f476..53f8c288db0 100644
--- a/libavcodec/dovi_rpu.c
+++ b/libavcodec/dovi_rpu.c
@@ -483,5 +483,5 @@ int ff_dovi_rpu_parse(DOVIContext *s, const uint8_t *rpu, size_t rpu_size)
fail:
ff_dovi_ctx_unref(s); /* don't leak potentially invalid state */
- return AVERROR(EINVAL);
+ return AVERROR_INVALIDDATA;
}
--
2.44.0
More information about the ffmpeg-devel
mailing list