[FFmpeg-cvslog] avcodec/dovi_rpu: switch to AVERROR_INVALIDDATA

Niklas Haas git at videolan.org
Wed Apr 3 17:33:33 EEST 2024


ffmpeg | branch: master | Niklas Haas <git at haasn.dev> | Sat Mar 23 20:04:05 2024 +0100| [0473270a34e4159cd03a5cb12994be8c767e11bf] | committer: Niklas Haas

avcodec/dovi_rpu: switch to AVERROR_INVALIDDATA

Instead of AVERROR(EINVAL)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0473270a34e4159cd03a5cb12994be8c767e11bf
---

 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 0502f0e7f2..5f2f79f0f6 100644
--- a/libavcodec/dovi_rpu.c
+++ b/libavcodec/dovi_rpu.c
@@ -484,5 +484,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;
 }



More information about the ffmpeg-cvslog mailing list