diff options
author | Andriy Gelman <andriy.gelman@gmail.com> | 2020-08-16 17:39:13 -0400 |
---|---|---|
committer | Andriy Gelman <andriy.gelman@gmail.com> | 2020-08-16 17:39:13 -0400 |
commit | 5df9724e42a99e1bde673f109f41c466ee834f09 (patch) | |
tree | 46ccdd77b6d1dbc3c97be99db42576439540c8b0 /libavcodec/v4l2_context.c | |
parent | d7af6d146983f8a63304fffb8535787f9e7bdee9 (diff) | |
download | ffmpeg-5df9724e42a99e1bde673f109f41c466ee834f09.tar.gz |
avcodec/v4l2_context: return EAGAIN to signal full buffers
Return proper error when frame buffers are full. This path is triggered
on the DragonBoard 410c since the encoding API change in commit
827d6fe73d2f5472c1c2.
Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
Reviewed-by: Mark Thompson <sw@jkqxz.net>
Diffstat (limited to 'libavcodec/v4l2_context.c')
-rw-r--r-- | libavcodec/v4l2_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/v4l2_context.c b/libavcodec/v4l2_context.c index 29b144ed73..ff1ea8e57b 100644 --- a/libavcodec/v4l2_context.c +++ b/libavcodec/v4l2_context.c @@ -599,7 +599,7 @@ int ff_v4l2_context_enqueue_frame(V4L2Context* ctx, const AVFrame* frame) avbuf = v4l2_getfree_v4l2buf(ctx); if (!avbuf) - return AVERROR(ENOMEM); + return AVERROR(EAGAIN); ret = ff_v4l2_buffer_avframe_to_buf(frame, avbuf); if (ret) |