提交 411f5c6a 编写于 作者: B Benoit Fouet 提交者: Luca Abeni

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
上级 b3e4d266
......@@ -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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册