aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/atrac1.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-05-17 00:30:18 +0200
committerJames Almer <jamrial@gmail.com>2019-07-16 16:18:09 -0300
commit71c908817ec6173afb9bfbae404c6ce824cd965c (patch)
tree6bad6b5c9ccb7abcee76f721bd19b0fd0739d5a4 /libavcodec/atrac1.c
parent9c6d14ab84e424bdb99a1a4b499311ecf8687ceb (diff)
downloadffmpeg-71c908817ec6173afb9bfbae404c6ce824cd965c.tar.gz
avformat/matroskadec: Accept more unknown-length elements II
Up until now, one last kind of unknown-length element hasn't been properly handled: Unknown-length elements that are supposed to be skipped, i.e. the level 1 elements that might reside after the clusters. This commit changes this. To do this, ebml_parse got a mode that essentially tries to skip everything except when parsing is needed (namely for unknown-length elements for which parsing is necessary as they can't be skipped). This mode is selected by using a NULL as destination where the parsed data should be written to. It is used to parse the level 1 elements in matroska_parse_cluster. The syntax list used for parsing must of course include links to the syntax of all the master elements that might need to be parsed. In other words: Instead of matroska_clusters (which contained every level 1 element except clusters as EBML_NONE elements designated to be skipped) matroska_segment is needed and used; matroska_clusters has been removed. Furthermore, matroska_segment has been reordered so that clusters are at the front as this is now the most common case for this list. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/atrac1.c')
0 files changed, 0 insertions, 0 deletions