diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-07-10 23:35:15 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-07-10 23:35:15 +0000 |
commit | 1f96d868363e9c6a22575d2306ebb3708b8d38dd (patch) | |
tree | 5b1a778f599ec0f24527ac25bba23a6985b8e50b /libavcodec/avcodec.h | |
parent | 827396688c7f0ad7eb8f1293542f3daf040a08b2 (diff) | |
download | ffmpeg-1f96d868363e9c6a22575d2306ebb3708b8d38dd.tar.gz |
Document that and why subtitle decoders do not support direct-rendering.
Originally committed as revision 24177 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 495d6796f2..9ae98b56f4 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -3542,6 +3542,10 @@ attribute_deprecated int avcodec_decode_subtitle(AVCodecContext *avctx, AVSubtit * Return a negative value on error, otherwise return the number of bytes used. * If no subtitle could be decompressed, got_sub_ptr is zero. * Otherwise, the subtitle is stored in *sub. + * Note that CODEC_CAP_DR1 is not available for subtitle codecs. This is for + * simplicity, because the performance difference is expect to be negligible + * and reusing a get_buffer written for video codecs would probably perform badly + * due to a potentially very different allocation pattern. * * @param avctx the codec context * @param[out] sub The AVSubtitle in which the decoded subtitle will be stored. |