Ticket #1753: v4l2_compressed_streams_need_accurate_framesize.patch
| File v4l2_compressed_streams_need_accurate_framesize.patch, 724 bytes (added by , 16 years ago) |
|---|
-
stream/tvi_v4l2.c
1807 1807 { 1808 1808 /* 1809 1809 this routine will be called before grab_video_frame 1810 thus let's return topmost frame's size 1810 thus let's return topmost frame's size. 1811 wait for a frame if none are available, since compressed 1812 formats must have an accurate framesize for -ovc copy 1811 1813 */ 1814 int loop_cnt = 0; 1815 while (priv->video_cnt == 0) { 1816 usleep(10000); 1817 if (loop_cnt++ > MAX_LOOP) break; 1818 } 1812 1819 if (priv->video_cnt) 1813 1820 return priv->video_ringbuffer[priv->video_head].framesize; 1814 1821 /*
