Пример #1
0
 def decodeEnd(self):
     if self._videoData is not None:
         self._videoData._free()
         self._videoData = None
     if self._frame is not None:
         avutil.av_free(self._frame)
         self._frame = None
Пример #2
0
 def _freeFormatContext(self):
     """Free the internal AVFormatContext struct.
     """
     if self._formatCtx is not None:
         avutil.av_free(self._formatCtx)
         self._formatCtx = None