avformat/mux: Rename FF_FMT_ALLOW_FLUSH->FF_OFMT_FLAG_ALLOW_FLUSH
It better reflects that this is a muxer-only flag. Also document the flag. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -1208,10 +1208,10 @@ int av_write_frame(AVFormatContext *s, AVPacket *in)
|
||||
if (!in) {
|
||||
#if FF_API_ALLOW_FLUSH || LIBAVFORMAT_VERSION_MAJOR >= 61
|
||||
// Hint: The pulse audio output device has this set,
|
||||
// so we can't switch the check to FF_FMT_ALLOW_FLUSH immediately.
|
||||
// so we can't switch the check to FF_OFMT_FLAG_ALLOW_FLUSH immediately.
|
||||
if (s->oformat->flags & AVFMT_ALLOW_FLUSH) {
|
||||
#else
|
||||
if (ffofmt(s->oformat)->flags_internal & FF_FMT_ALLOW_FLUSH) {
|
||||
if (ffofmt(s->oformat)->flags_internal & FF_OFMT_FLAG_ALLOW_FLUSH) {
|
||||
#endif
|
||||
ret = ffofmt(s->oformat)->write_packet(s, NULL);
|
||||
flush_if_needed(s);
|
||||
|
||||
Reference in New Issue
Block a user