only use frombytes, exists for a long time

This commit is contained in:
j 2016-06-16 13:55:29 +02:00
parent 82ddda4fb7
commit 150639ced3

View file

@ -123,9 +123,6 @@ def video(path, height=96, info=None, framerate=FPS):
return
else:
first = False
if hasattr(Image, 'fromstring'):
yield Image.fromstring('RGB', (width, height), data)
else:
yield Image.frombytes('RGB', (width, height), data)
def audio(path, info=None, samplerate=48000, framerate=FPS):