• Jan Ekström's avatar
    lavc/libaribb24: add error handling to region handling · 4beccf40
    Jan Ekström authored
    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.
    4beccf40
libaribb24.c 12.9 KB