aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice/v4l2.c
diff options
context:
space:
mode:
authorLuca Abeni <lucabe72@email.it>2009-12-14 10:30:37 +0000
committerLuca Abeni <lucabe72@email.it>2009-12-14 10:30:37 +0000
commit158aa9f2db642f6f3989386989530b3de46ef31b (patch)
treebdb8fabfec6887eb7432c9a8e37967148648f7d8 /libavdevice/v4l2.c
parentdeda2a4a7237d03b6e3ef2189f5515b550109ac6 (diff)
downloadffmpeg-158aa9f2db642f6f3989386989530b3de46ef31b.tar.gz
Return pkt->size in v4l2_read_packet().
mmap_read_frame() takes care of ensuring that the packet size is correct. Originally committed as revision 20855 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavdevice/v4l2.c')
-rw-r--r--libavdevice/v4l2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
index 940db71394..a866f9e060 100644
--- a/libavdevice/v4l2.c
+++ b/libavdevice/v4l2.c
@@ -625,7 +625,7 @@ static int v4l2_read_packet(AVFormatContext *s1, AVPacket *pkt)
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)