Skip to content

Commit

Permalink
removed redundant call of av.dataset in VideoReader class (#1899)
Browse files Browse the repository at this point in the history
  • Loading branch information
azhavoro authored Jul 14, 2020
1 parent cf26ef0 commit f678b66
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cvat/apps/engine/media_extractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from abc import ABC, abstractmethod

import av
import av.datasets
import numpy as np
from pyunpack import Archive
from PIL import Image, ImageFile
Expand Down Expand Up @@ -234,7 +233,7 @@ def get_progress(self, pos):
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()
Expand Down

0 comments on commit f678b66

Please sign in to comment.