Revision 1f96d868

View differences:

libavcodec/avcodec.h
3542 3542
 * Return a negative value on error, otherwise return the number of bytes used.
3543 3543
 * If no subtitle could be decompressed, got_sub_ptr is zero.
3544 3544
 * Otherwise, the subtitle is stored in *sub.
3545
 * Note that CODEC_CAP_DR1 is not available for subtitle codecs. This is for
3546
 * simplicity, because the performance difference is expect to be negligible
3547
 * and reusing a get_buffer written for video codecs would probably perform badly
3548
 * due to a potentially very different allocation pattern.
3545 3549
 *
3546 3550
 * @param avctx the codec context
3547 3551
 * @param[out] sub The AVSubtitle in which the decoded subtitle will be stored.

Also available in: Unified diff