aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/hevc.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-01-23 17:08:30 +0100
committerJames Almer <jamrial@gmail.com>2020-01-26 12:41:31 -0300
commit22ec35a428d66875870b51cf3e2a4d085279ebd0 (patch)
tree4f23585c04b6c2b1580c647b888b1bee0bda02ab /libavformat/hevc.h
parent680cd59bb21c7bce92789ff885c018207b0b90bc (diff)
downloadffmpeg-22ec35a428d66875870b51cf3e2a4d085279ebd0.tar.gz
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 <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/hevc.h')
-rw-r--r--libavformat/hevc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/hevc.h b/libavformat/hevc.h
index 1e355cd34a..bb144397c0 100644
--- a/libavformat/hevc.h
+++ b/libavformat/hevc.h
@@ -71,8 +71,8 @@ int ff_hevc_annexb2mp4(AVIOContext *pb, const uint8_t *buf_in,
* or to discard them (non-zero)
* @param ps_count address of the variable where the number of discarded
* parameter set NAL units shall be written, may be NULL
- * @return the amount (in bytes) of data written in case of success, a negative
- * value corresponding to an AVERROR code in case of failure
+ * @return 0 in case of success, a negative value corresponding to an AVERROR
+ * code in case of failure
*/
int ff_hevc_annexb2mp4_buf(const uint8_t *buf_in, uint8_t **buf_out,
int *size, int filter_ps, int *ps_count);