[FFmpeg-devel] [PATCH] libavdevice/v4l2: Return EAGAIN when receiving a frame of unexpected size

Nicolas George george at nsup.org
Mon Mar 18 01:24:44 EET 2019


Alexander Strasser (12019-03-18):
> I tested the EAGAIN version and it worked. I also tested returning a

ffmpeg.c uses the non-blocking mode.

> zero-sized packet, like in the case where V4L flags the data as corrupt,
> that worked too. See commit 28f20d2ff487aa589643d8f70eaf614b78839685
> 
> Do you think the zero-sized packet would be better than returning
> FFERROR_REDO?

I think it depends on what happens exactly with that frame? What is the
partial packet returned? Is there a timestamp? Etc.

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/20190318/72c1f402/attachment.sig>


More information about the ffmpeg-devel mailing list