From 22ec35a428d66875870b51cf3e2a4d085279ebd0 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Thu, 23 Jan 2020 17:08:30 +0100 Subject: avformat/av1, hevc: Make *_buf-functions return 0 on success The output size is already returned via a pointer argument, so there is no need to return it via the ordinary return value as well. The rationale behind this is to not poison the return value on success. It also unifies the behaviour of the *_buf-functions for AVC, AV1 and HEVC. Signed-off-by: Andreas Rheinhardt Signed-off-by: James Almer --- libavformat/av1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/av1.c') diff --git a/libavformat/av1.c b/libavformat/av1.c index 5ad9222900..4ff4bffddf 100644 --- a/libavformat/av1.c +++ b/libavformat/av1.c @@ -76,7 +76,7 @@ int ff_av1_filter_obus_buf(const uint8_t *buf, uint8_t **out, int *size) av_freep(out); *size = avio_close_dyn_buf(pb, out); - return ret; + return 0; } static inline void uvlc(GetBitContext *gb) -- cgit v1.2.3