On 08/03/2017 01:53 AM, Mark Thompson wrote:
+    }
+
+dequeue:
+
+    ret = avpriv_v4l_dequeue(cap_pool, NULL, pkt, timeout);
+    if (ret == AVERROR(EAGAIN))
+        return 0;
+    if (!ret)
+        *got_packet = 1;
+
+    return ret;
+}
Does this actually work for a long stream?  You won't necessarily return a 
packet for every frame, but always need to enqueue a frame to be able to 
attempt to dequeue a packet.

It might be better to use the send/receive API here as well.

how long does it have to be? I have only tried a couple of minutes

ok will check the API
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to