Commits

Anonymous committed e3c9ec3

core.steam.input: Fix bug in fragmented streams with only 1 fragment.

Comments (0)

Files changed (1)

hachoir-core/hachoir_core/stream/input.py

         self.fragments = [ (0, data.absolute_address, data.size) ]
         self.next = field.next
         InputStream.__init__(self, self.stream.source + field.path, size)
+        if not self.next:
+            self._current_size = data.size
+            self._setSize()
 
     def _feed(self, end):
         if self._current_size < end: