removed redundant call of av.dataset in VideoReader class (#1899)

main
Andrey Zhavoronkov 6 years ago committed by GitHub
parent cf26ef0363
commit f678b66d8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -10,7 +10,6 @@ import io
from abc import ABC, abstractmethod
import av
import av.datasets
import numpy as np
from pyunpack import Archive
from PIL import Image, ImageFile
@ -234,7 +233,7 @@ class VideoReader(IMediaReader):
return pos / stream.duration if stream.duration else None
def _get_av_container(self):
return av.open(av.datasets.curated(self._source_path[0]))
return av.open(self._source_path[0])
def get_preview(self):
container = self._get_av_container()

Loading…
Cancel
Save