Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-04-02 00:04:19 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-04-05 19:36:51 +0300
commit416cc012f6203c7162079ae5b14930ada9189ac3 (patch)
tree74694eb270ccb7055cc897ee8ab839f951ccd6ee /libavutil/frame.c
parentb3652d97452bd1d8b641bf7ec967f9cdda2a53c5 (diff)
avutil/frame: Return 0 on success in av_frame_ref()
av_frame_copy() is allowed to return values >= 0 on success, whereas the documentation of av_frame_ref() states that the return value is 0 on success. Ergo the latter must not just return the former's return value. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavutil/frame.c')
-rw-r--r--libavutil/frame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/frame.c b/libavutil/frame.c
index 31a2117b82..fefb2b69c0 100644
--- a/libavutil/frame.c
+++ b/libavutil/frame.c
@@ -469,7 +469,7 @@ int av_frame_ref(AVFrame *dst, const AVFrame *src)
if (ret < 0)
goto fail;
- return ret;
+ return 0;
}
/* ref the buffers */