mirror of
https://github.com/mpv-player/mpv
synced 2025-02-16 12:17:12 +00:00
swresample: minor simplification
Cosmetic and no change in behavior. At least I think this looks simpler.
This commit is contained in:
parent
3d4071e6e5
commit
d7db42d27f
@ -666,15 +666,14 @@ static void process(struct mp_filter *f)
|
|||||||
|
|
||||||
struct mp_frame out = filter_resample_output(p, p->input);
|
struct mp_frame out = filter_resample_output(p, p->input);
|
||||||
|
|
||||||
if (p->input && out.type) {
|
if (out.type) {
|
||||||
mp_pin_in_write(f->ppins[1], out);
|
mp_pin_in_write(f->ppins[1], out);
|
||||||
} else if (!p->input && out.type) {
|
if (!p->input)
|
||||||
mp_pin_in_write(f->ppins[1], out);
|
mp_pin_out_repeat_eof(f->ppins[0]);
|
||||||
mp_pin_out_repeat_eof(f->ppins[0]);
|
} else if (p->input) {
|
||||||
} else if (!p->input) {
|
|
||||||
mp_pin_in_write(f->ppins[1], MP_EOF_FRAME);
|
|
||||||
} else {
|
|
||||||
mp_filter_internal_mark_progress(f); // try to consume more input
|
mp_filter_internal_mark_progress(f); // try to consume more input
|
||||||
|
} else {
|
||||||
|
mp_pin_in_write(f->ppins[1], MP_EOF_FRAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p->input && !mp_aframe_get_size(p->input))
|
if (p->input && !mp_aframe_get_size(p->input))
|
||||||
|
Loading…
Reference in New Issue
Block a user