OSDN Git Service

Add support for non-blocking input formats
authorLuca Abeni <lucabe72@email.it>
Fri, 6 Jul 2007 07:16:47 +0000 (07:16 +0000)
committerLuca Abeni <lucabe72@email.it>
Fri, 6 Jul 2007 07:16:47 +0000 (07:16 +0000)
Originally committed as revision 9495 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/avformat.h

index 3c61e19..3d199a8 100644 (file)
@@ -399,6 +399,7 @@ typedef struct AVFormatContext {
     int flags;
 #define AVFMT_FLAG_GENPTS       0x0001 ///< generate pts if missing even if it requires parsing future frames
 #define AVFMT_FLAG_IGNIDX       0x0002 ///< ignore index
+#define AVFMT_FLAG_NONBLOCK     0x0004 ///< do not block when reading packets from input
 
     int loop_input;
     /** decoding: size of data to probe; encoding unused */