Mercurial > libavcodec.hg
comparison avcodec.h @ 9573:c939417a3a39 libavcodec
Negative is error not -1, corrected in the doxy for avcodec_decode_subtitle2().
| author | michael |
|---|---|
| date | Mon, 27 Apr 2009 12:38:14 +0000 |
| parents | b3074f49b078 |
| children | e83504a0f279 |
comparison
equal
deleted
inserted
replaced
| 9572:b3074f49b078 | 9573:c939417a3a39 |
|---|---|
| 3168 const uint8_t *buf, int buf_size); | 3168 const uint8_t *buf, int buf_size); |
| 3169 #endif | 3169 #endif |
| 3170 | 3170 |
| 3171 /** | 3171 /** |
| 3172 * Decodes a subtitle message. | 3172 * Decodes a subtitle message. |
| 3173 * Returns -1 if error, otherwise returns the number of bytes used. | 3173 * Returns a negative value on error, otherwise returns the number of bytes used. |
| 3174 * If no subtitle could be decompressed, \p got_sub_ptr is zero. | 3174 * If no subtitle could be decompressed, \p got_sub_ptr is zero. |
| 3175 * Otherwise, the subtitle is stored in \p *sub. | 3175 * Otherwise, the subtitle is stored in \p *sub. |
| 3176 * | 3176 * |
| 3177 * @param avctx the codec context | 3177 * @param avctx the codec context |
| 3178 * @param[out] sub The AVSubtitle in which the decoded subtitle will be stored. | 3178 * @param[out] sub The AVSubtitle in which the decoded subtitle will be stored. |
