diff --git a/ffplayout.py b/ffplayout.py index 9cfe14b4..8dd0150f 100755 --- a/ffplayout.py +++ b/ffplayout.py @@ -1433,7 +1433,7 @@ def main(): while True: buf = decoder.stdout.read(65424) - if not buf: + if not buf and decoder.poll() is not None: break encoder.stdin.write(buf)