• Andreas Rheinhardt's avatar
    avformat/matroskadec: Set offset of first cluster · 43c3cebb
    Andreas Rheinhardt authored
    By default, the data_offset member of the AVFormatInternal of the
    AVFormatContext associated with the MatroskaDemuxContext has not been
    initialized explicitly by any Matroska-specific function, so that it was
    initialized by default to the offset at the end of matroska_read_header,
    i.e. usually to the offset of the length field of the first encountered
    cluster. This meant that in case that the Matroska-specific seek-code
    fails because there are no index entries for the target track a seek to
    data_offset would be performed and ordinary parsing would start from
    there which is nonsense: The length field would be treated as EBML ID and
    (if the length field is not longer than four bytes (EBML numbers that
    long are rejected as invalid EBML IDs)) whatever comes next would be
    treated as its EBML size although it simply isn't.
    Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
    43c3cebb
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...