]> git.sesse.net Git - ffmpeg/commit
avformat/matroskadec: Reuse positions
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 16 May 2019 22:30:12 +0000 (00:30 +0200)
committerJames Almer <jamrial@gmail.com>
Tue, 16 Jul 2019 19:16:59 +0000 (16:16 -0300)
commit7087fc95b258793cf55953e10fb9005f01141bc2
tree48c28168eeecf7bb87ad2d3edb74e4457c1f9cee
parent3ed2755baaf3f8a9f088f8c7b9cc7bd8c629e8fb
avformat/matroskadec: Reuse positions

Up until now, avio_tell was used multiple times in ebml_parse and its
subroutines, although the result of these calls can usually be simply
derived from the result of earlier calls to avio_tell. This has been
changed. Unnecessary calls to avio_tell in ebml_parse are avoided now.

Furthermore, there has been a slight change in the output of some error
messages relating to elements exceeding their containing master element:
The reported position of the element now points to the first byte of the
element ID and no longer to the first byte of the element's payload.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/matroskadec.c