diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-03-11 20:43:58 +0000 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-03-13 19:47:47 +0000 |
commit | 117b432748ca87de4cd0f09d9b1495545e264733 (patch) | |
tree | 0542c2432120a0e973bcc1748a717f122787f97c /libavcodec/avcodec.h | |
parent | 9993a067f6c8c7e7838052ac3146aa6b80dd7e81 (diff) | |
download | ffmpeg-117b432748ca87de4cd0f09d9b1495545e264733.tar.gz |
lavc: Introduce AVCodec internal capabilities
This field is designed for marking codec properties useful to lavc internals.
Two internal capabilities are added:
- FF_CODEC_CAP_INIT_THREADSAFE: codec can be opened without locks;
- FF_CODEC_CAP_INIT_CLEANUP: codec frees memory if initialization fails.
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 8b9e21fbbd..3cd24b1fc1 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -2924,6 +2924,11 @@ typedef struct AVCodec { * Will be called when seeking */ void (*flush)(AVCodecContext *); + /** + * Internal codec capabilities. + * See FF_CODEC_CAP_* in internal.h + */ + int caps_internal; } AVCodec; /** |