aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-01-28 09:08:42 +0100
committerAnton Khirnov <anton@khirnov.net>2012-01-28 19:45:33 +0100
commit9bfe218299a1a206356c702c8651e5c6bdb0c009 (patch)
treed4ef8563737ba5c819afd3839abcd8169efc2699
parent44911f2985b9bf823e0605f177e3dbb1f66d3e16 (diff)
downloadffmpeg-9bfe218299a1a206356c702c8651e5c6bdb0c009.tar.gz
lavc: extend doxy for avcodec_alloc_context3().
-rw-r--r--libavcodec/avcodec.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 18db7c55d9..d8e56caeac 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -3415,6 +3415,9 @@ int avcodec_get_context_defaults3(AVCodecContext *s, AVCodec *codec);
* @param codec if non-NULL, allocate private data and initialize defaults
* for the given codec. It is illegal to then call avcodec_open2()
* with a different codec.
+ * If NULL, then the codec-specific defaults won't be initialized,
+ * which may result in suboptimal default settings (this is
+ * important mainly for encoders, e.g. libx264).
*
* @return An AVCodecContext filled with default values or NULL on failure.
* @see avcodec_get_context_defaults