aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/cuviddec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-06-25 03:08:56 +0200
committerJames Almer <jamrial@gmail.com>2019-06-24 22:19:03 -0300
commit239c7369e0490c6a130a1e4fd11c4fbf56379ce7 (patch)
tree706bdec5aa3afe650e5f6cf054c3728cbbaaca0b /libavcodec/cuviddec.c
parenta27e5398e2d0e8af7eaa35001ea920d717fe9e38 (diff)
downloadffmpeg-239c7369e0490c6a130a1e4fd11c4fbf56379ce7.tar.gz
avformat/matroskadec: Improve read error/EOF checks I
ebml_read_num had a number of flaws: 1. The check for read errors/EOF was totally wrong. E.g. an EBML number beginning with the invalid 0x00 would be considered a read error, although it is just invalid data. 2. The check for read errors/EOF was done just once, after reading the first byte of the EBML number. But errors/EOF can happen inbetween, of course, and this wasn't checked. 3. There was no way to distinguish when EOF should be an error (because the data has to be there) for which an error message should be emitted and when it is not necessarily an error (namely during parsing of EBML IDs). Such a possibility has been added and used. All this was fixed; furthermore, the error messages for invalid EBML numbers were improved and useless initializations were removed. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/cuviddec.c')
0 files changed, 0 insertions, 0 deletions