mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
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
This commit is contained in:
parent
deda2a4a72
commit
158aa9f2db
@ -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;
|
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)
|
static int v4l2_read_close(AVFormatContext *s1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user