summaryrefslogtreecommitdiff
path: root/libavformat/avformat.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-09-16 00:59:15 +0000
committerMichael Niedermayer <michaelni@gmx.at>2009-09-16 00:59:15 +0000
commitddce56efc5976dbc4910a2e59bfd06f9f5f0ae4f (patch)
treeff93799ddcf1a45ee6204e6b8a73f2d695d9d2fa /libavformat/avformat.h
parent42831b46ef03f00b86bf13c509a5e9b01b3fe457 (diff)
Make packet interleaving in the muxer not scan through the whole
buffer when simply appending at the end works. Much faster if one stream ends prematurely. Fixes issue1379. Originally committed as revision 19870 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r--libavformat/avformat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index e49cf6e8f1..a064d76f02 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -450,6 +450,12 @@ typedef struct AVStream {
*/
#define MAX_PROBE_PACKETS 100
int probe_packets;
+
+ /**
+ * Number of packets in packet_buffer for this stream when muxing.
+ * used internally, NOT PART OF PUBLIC API, dont read or write from outside of libav*
+ */
+ int num_in_packet_buffer;
} AVStream;
#define AV_PROGRAM_RUNNING 1