Skip to content

Commit

Permalink
avcodec/v4l2_context: return EAGAIN to signal full buffers
Browse files Browse the repository at this point in the history
Return proper error when frame buffers are full. This path is triggered
on the DragonBoard 410c since the encoding API change in commit
827d6fe.

Signed-off-by: Andriy Gelman <[email protected]>
Reviewed-by: Mark Thompson <[email protected]>
  • Loading branch information
talih0 committed Aug 16, 2020
1 parent d7af6d1 commit 5df9724
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavcodec/v4l2_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5df9724

Please sign in to comment.