diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-26 00:40:29 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-10-03 01:45:46 +0200 |
commit | dd48e49d5476178db2478598dbcccccf84923d13 (patch) | |
tree | dab4d3fac643c0dd6191b73841555272e03e7921 /libavformat/mux.h | |
parent | 0d596776c63a33887526b416dbf0353bc3821437 (diff) | |
download | ffmpeg-dd48e49d5476178db2478598dbcccccf84923d13.tar.gz |
avformat/avformat: Deprecate AVFMT_ALLOW_FLUSH
It is of no value to the user, because every muxer can always
be flushed with a NULL packet. As its documentation shows
("If not set, the muxer will not receive a NULL packet in
the write_packet function") it is actually an internal flag
that has been publically exposed because there was no internal
flags field for output formats for a long time. But now there is
and so use it by replacing the public flag with a private one.
Reviewed-by: James Almer <jamrial@gmail.com>
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Reviewed-by: Martin Storsjö <martin@martin.st>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/mux.h')
-rw-r--r-- | libavformat/mux.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/mux.h b/libavformat/mux.h index 9de5c2852a..b9ec75641d 100644 --- a/libavformat/mux.h +++ b/libavformat/mux.h @@ -27,6 +27,8 @@ struct AVDeviceInfoList; +#define FF_FMT_ALLOW_FLUSH (1 << 1) + typedef struct FFOutputFormat { /** * The public AVOutputFormat. See avformat.h for it. @@ -38,13 +40,13 @@ typedef struct FFOutputFormat { int priv_data_size; /** - * Internal flags. See FF_FMT_FLAG_* in internal.h. + * Internal flags. See FF_FMT_* in internal.h and mux.h. */ int flags_internal; int (*write_header)(AVFormatContext *); /** - * Write a packet. If AVFMT_ALLOW_FLUSH is set in flags, + * Write a packet. If FF_FMT_ALLOW_FLUSH is set in flags_internal, * pkt can be NULL in order to flush data buffered in the muxer. * When flushing, return 0 if there still is more data to flush, * or 1 if everything was flushed and there is no more buffered |