Browse Source

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>
master
Andreas Rheinhardt 4 years ago
parent
commit
416cc012f6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavutil/frame.c

+ 1
- 1
libavutil/frame.c View File

@@ -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 */


Loading…
Cancel
Save