diff avformat.h @ 4975:76263311c368 libavformat

fix codec probing, stop after MAX_PROBE_PACKETS and return all packets
author bcoudurier
date Sun, 31 May 2009 00:24:06 +0000
parents 85e8512e7ec0
children c9bbf0a253a8
line wrap: on
line diff
--- a/avformat.h	Sat May 30 18:51:15 2009 +0000
+++ b/avformat.h	Sun May 31 00:24:06 2009 +0000
@@ -22,7 +22,7 @@
 #define AVFORMAT_AVFORMAT_H
 
 #define LIBAVFORMAT_VERSION_MAJOR 52
-#define LIBAVFORMAT_VERSION_MINOR 33
+#define LIBAVFORMAT_VERSION_MINOR 34
 #define LIBAVFORMAT_VERSION_MICRO  0
 
 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
@@ -443,6 +443,13 @@
      * AV_NOPTS_VALUE by default.
      */
     int64_t reference_dts;
+
+    /**
+     * Number of packets to buffer for codec probing
+     * NOT PART OF PUBLIC API
+     */
+#define MAX_PROBE_PACKETS 100
+    int probe_packets;
 } AVStream;
 
 #define AV_PROGRAM_RUNNING 1