def decode_amf(body):
        def generator():
            fd = BytesIO(body)
            while True:
                try:
                    yield AMF0Value.read(fd)
                except __HOLE__:
                    break

        return list(generator())
dataset/ETHPy150Open chrippa/livestreamer/src/livestreamer/plugins/ustreamtv.py/decode_amf