[FFmpeg-devel] [PATCH] libavdevice/v4l2: Return EAGAIN when receiving a frame of unexpected size
Nicolas George
george at nsup.org
Sun Mar 17 19:25:22 EET 2019
Alexander Strasser (12019-03-17):
> I had found that when capturing video for some hours from
> USB Camera-B4.09.24.1 (Manufacturer: OmniVision Technologies, Inc.),
> sometimes when invoking the ioctl DQBUF, the returned buffer is not
> filled with the size we expect for the raw video frame.
Which seems like a kernel bug, does it not?
> To avoid this, return AVERROR(EAGAIN) instead.
Returning EAGAIN when not in non-blocking mode is invalid. FFERROR_REDO
would be the correct code in that case.
Regards,
--
Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190317/f1a056c0/attachment.sig>
More information about the ffmpeg-devel
mailing list