Rewind the file after reading the first frame because a different parser object is used.

This commit is contained in:
Moritz Bunkus 2004-11-25 21:48:36 +00:00
parent 3e659ed650
commit 0a3dc9a63a

View File

@ -73,6 +73,7 @@ mpeg_es_reader_c::mpeg_es_reader_c(track_info_c *nti)
throw ""; throw "";
} }
mm_io->setFilePointer(0);
version = parser.GetMPEGVersion(); version = parser.GetMPEGVersion();
seq_hdr = parser.GetSequenceHeader(); seq_hdr = parser.GetSequenceHeader();
width = seq_hdr.width; width = seq_hdr.width;