bug fix. huge memory usages for matroska file with errors
authorJiyong Min <jiyong.min@samsung.com>
Mon, 2 Aug 2021 00:41:03 +0000 (09:41 +0900)
committerbackto.kim <backto.kim@samsung.com>
Mon, 6 Dec 2021 06:52:20 +0000 (15:52 +0900)
commit8e6219e1d1fe6e86de30d08d8046dcfc575b28ea
tree0a43f9b86be859637267c3a6b984897d9cb28e65
parent11c6f8091b55d4a21e2a04786373f7bdcc6dbfa1
bug fix. huge memory usages for matroska file with errors

[Cause]
  According to the current specifications for matroska,
  it needs to be parsed to the end of the file when tag has no length.
  If a normal tag does not appear immediately, unnecessary memory
  for embl list is used to read the the end of the file.
[Solution]
  To avoid huge memory usages, return error for unknown-length tags.

Change-Id: I756419ddb3b42af423dbf0aace2e9df5e9f21f1d
libavformat/matroskadec.c