]> git.sesse.net Git - ffmpeg/commit
lavc/libaribb24: add error handling to region handling
authorJan Ekström <jeebjp@gmail.com>
Sun, 10 Feb 2019 23:54:26 +0000 (01:54 +0200)
committerJan Ekström <jeebjp@gmail.com>
Tue, 12 Feb 2019 18:16:40 +0000 (20:16 +0200)
commit4beccf400df3d9f319a977d4c4a37c926e7a3f8d
tree2ca22677699f791b737844ededcafd52c742f9f1
parent84e7aff60816d8f491194a9d96d906c39ad052db
lavc/libaribb24: add error handling to region handling

Fixes some rather embarrassing mistakes that somehow passed my
eyes.

* Now catches if memory allocation has failed during bprint usage
  by checking av_bprint_is_complete().
* Now catches if adding an ASS rectangle into an AVSubtitle failed.
* Returns AVERROR_INVALIDDATA if we get an invalid region buffer
  length.
libavcodec/libaribb24.c