Commit 9a4cc37e authored by lucabe's avatar lucabe

Forward error code when reading a v4l2 frame

Patch by Benoit Fouet (benoit.fouet AT purplelabs DOT com)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10487 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 694582c7
......@@ -608,7 +608,7 @@ static int v4l2_read_packet(AVFormatContext *s1, AVPacket *pkt)
return AVERROR(EIO);
}
if (res < 0) {
return AVERROR(EIO);
return res;
}
if (s1->streams[0]->codec->coded_frame) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment