You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-09-16 08:36:51 +02:00
Forward error code when reading a v4l2 frame
Patch by Benoit Fouet (benoit.fouet AT purplelabs DOT com) Originally committed as revision 10487 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -608,7 +608,7 @@ static int v4l2_read_packet(AVFormatContext *s1, AVPacket *pkt)
|
|||||||
return AVERROR(EIO);
|
return AVERROR(EIO);
|
||||||
}
|
}
|
||||||
if (res < 0) {
|
if (res < 0) {
|
||||||
return AVERROR(EIO);
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (s1->streams[0]->codec->coded_frame) {
|
if (s1->streams[0]->codec->coded_frame) {
|
||||||
|
Reference in New Issue
Block a user