[FFmpeg-cvslog] r10487 - trunk/libavformat/v4l2.c

lucabe subversion
Thu Sep 13 14:46:30 CEST 2007


Author: lucabe
Date: Thu Sep 13 14:46:30 2007
New Revision: 10487

Log:
Forward error code when reading a v4l2 frame
Patch by Benoit Fouet (benoit.fouet AT purplelabs DOT com)


Modified:
   trunk/libavformat/v4l2.c

Modified: trunk/libavformat/v4l2.c
==============================================================================
--- trunk/libavformat/v4l2.c	(original)
+++ trunk/libavformat/v4l2.c	Thu Sep 13 14:46:30 2007
@@ -608,7 +608,7 @@ static int v4l2_read_packet(AVFormatCont
         return AVERROR(EIO);
     }
     if (res < 0) {
-        return AVERROR(EIO);
+        return res;
     }
 
     if (s1->streams[0]->codec->coded_frame) {




More information about the ffmpeg-cvslog mailing list