diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-09-16 00:59:15 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-09-16 00:59:15 +0000 |
commit | ddce56efc5976dbc4910a2e59bfd06f9f5f0ae4f (patch) | |
tree | ff93799ddcf1a45ee6204e6b8a73f2d695d9d2fa /libavformat/avformat.h | |
parent | 42831b46ef03f00b86bf13c509a5e9b01b3fe457 (diff) | |
download | ffmpeg-ddce56efc5976dbc4910a2e59bfd06f9f5f0ae4f.tar.gz |
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.h | 6 |
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 |