# HG changeset patch # User michael # Date 1240835894 0 # Node ID c939417a3a3977721749a3f2f442091a0c7dcb00 # Parent b3074f49b07802465a10ea82f5565845708ddbd4 Negative is error not -1, corrected in the doxy for avcodec_decode_subtitle2(). diff -r b3074f49b078 -r c939417a3a39 avcodec.h --- a/avcodec.h Mon Apr 27 12:36:23 2009 +0000 +++ b/avcodec.h Mon Apr 27 12:38:14 2009 +0000 @@ -3170,7 +3170,7 @@ /** * Decodes a subtitle message. - * Returns -1 if error, otherwise returns the number of bytes used. + * Returns a negative value on error, otherwise returns the number of bytes used. * If no subtitle could be decompressed, \p got_sub_ptr is zero. * Otherwise, the subtitle is stored in \p *sub. *