diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-07-16 17:48:11 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-08-02 10:44:37 +0200 |
commit | eede1d2927db18b962741e6a09ec1401fdad6277 (patch) | |
tree | 895d6736a3fd518de00f4aacd13123584bb0c675 /libavutil/frame.c | |
parent | d9cd192dddb459e85a243dd0349f32e9a4f7a9d8 (diff) |
lavu/frame: allow calling av_frame_make_writable() on non-refcounted frames
This is an easy way to make a refcounted frame from a non-refcounted
one.
Diffstat (limited to 'libavutil/frame.c')
-rw-r--r-- | libavutil/frame.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libavutil/frame.c b/libavutil/frame.c index 9c9bab3fcf..de4ad1f94d 100644 --- a/libavutil/frame.c +++ b/libavutil/frame.c @@ -552,9 +552,6 @@ int av_frame_make_writable(AVFrame *frame) AVFrame tmp; int ret; - if (!frame->buf[0]) - return AVERROR(EINVAL); - if (av_frame_is_writable(frame)) return 0; |