History

avformat/mux: Remove check for AVFMT_ALLOW_FLUSH

Due to the bump it is now certain that all devices that support flushing have the proper internal flag set. (Notice that the check for LIBAVFORMAT_VERSION was wrong.)

Andreas Rheinhardt committed 2 years ago

Commit a990e6f1 parent e95dd6f1 file · +0 −6Browse files

Unified · Split

libavformat/mux.c+0−6
@@ -1236,13 +1236,7 @@ int av_write_frame(AVFormatContext *s, AVPacket *in) · 1235 unmodified lines
12361236 int ret;
12371237
12381238 if (!in) {
1239−#if FF_API_ALLOW_FLUSH || LIBAVFORMAT_VERSION_MAJOR >= 61
1240− // Hint: The pulse audio output device has this set,
1241− // so we can't switch the check to FF_OFMT_FLAG_ALLOW_FLUSH immediately.
1242− if (s->oformat->flags & AVFMT_ALLOW_FLUSH) {
1243−#else
12441239 if (ffofmt(s->oformat)->flags_internal & FF_OFMT_FLAG_ALLOW_FLUSH) {
1245−#endif
12461240 ret = ffofmt(s->oformat)->write_packet(s, NULL);
12471241 flush_if_needed(s);
12481242 if (ret >= 0 && s->pb && s->pb->error < 0)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t