diff options
author | Benoit Fouet <benoit.fouet@purplelabs.com> | 2007-09-13 12:46:30 +0000 |
---|---|---|
committer | Luca Abeni <lucabe72@email.it> | 2007-09-13 12:46:30 +0000 |
commit | 411f5c6abdb0eca9d2e51f690e8b8fe5f91c6c3f (patch) | |
tree | d95242309df93df47ccb64d588a2b82671c7ac6e | |
parent | b3e4d266f4fc7550a3416bf27128931144c05b05 (diff) | |
download | ffmpeg-411f5c6abdb0eca9d2e51f690e8b8fe5f91c6c3f.tar.gz |
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
-rw-r--r-- | libavformat/v4l2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/v4l2.c b/libavformat/v4l2.c index 99b768774e..d385d57c7c 100644 --- a/libavformat/v4l2.c +++ b/libavformat/v4l2.c @@ -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) { |