[FFmpeg-cvslog] r20855 - trunk/libavdevice/v4l2.c

lucabe subversion
Mon Dec 14 11:30:37 CET 2009


Author: lucabe
Date: Mon Dec 14 11:30:37 2009
New Revision: 20855

Log:
Return pkt->size in v4l2_read_packet().
mmap_read_frame() takes care of ensuring that the packet size
is correct.

Modified:
   trunk/libavdevice/v4l2.c

Modified: trunk/libavdevice/v4l2.c
==============================================================================
--- trunk/libavdevice/v4l2.c	Mon Dec 14 07:33:43 2009	(r20854)
+++ trunk/libavdevice/v4l2.c	Mon Dec 14 11:30:37 2009	(r20855)
@@ -625,7 +625,7 @@ static int v4l2_read_packet(AVFormatCont
         s1->streams[0]->codec->coded_frame->top_field_first = s->top_field_first;
     }
 
-    return s->frame_size;
+    return pkt->size;
 }
 
 static int v4l2_read_close(AVFormatContext *s1)



More information about the ffmpeg-cvslog mailing list