diff options
author | Rodger Combs <rodger.combs@gmail.com> | 2015-10-07 21:32:14 -0500 |
---|---|---|
committer | Rodger Combs <rodger.combs@gmail.com> | 2015-12-28 08:40:35 -0600 |
commit | 1f9139b07b8a896b62c1f28f3d04acac33978c0d (patch) | |
tree | 343964318a9d131e6dfe0886ac7776463fb69328 /libavformat/internal.h | |
parent | 7a161b74ad13e8005f413770cce8af37bd051d32 (diff) | |
download | ffmpeg-1f9139b07b8a896b62c1f28f3d04acac33978c0d.tar.gz |
lavf: add automatic bitstream filtering; bump version
This solves the problem discussed in https://ffmpeg.org/pipermail/ffmpeg-devel/2015-September/179238.html
by allowing AVCodec::write_header to be delayed until after packets have been
run through required bitstream filters in order to generate global extradata.
It also provides a mechanism by which a muxer can add a bitstream filter to a
stream automatically, rather than prompting the user to do so.
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r-- | libavformat/internal.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h index 4297cb85d7..0e59da0c2d 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -117,6 +117,11 @@ struct AVFormatInternal { int inject_global_side_data; int avoid_negative_ts_use_pts; + + /** + * Whether or not a header has already been written + */ + int header_written; }; struct AVStreamInternal { @@ -125,6 +130,18 @@ struct AVStreamInternal { * from dts. */ int reorder; + + /** + * bitstream filter to run on stream + * - encoding: Set by muxer using ff_stream_add_bitstream_filter + * - decoding: unused + */ + AVBitStreamFilterContext *bsfc; + + /** + * Whether or not check_bitstream should still be run on each packet + */ + int bitstream_checked; }; #ifdef __GNUC__ |