lavc: add avcodec_is_open().

It allows to check whether an AVCodecContext is open in a documented
way. Right now the undocumented way this check is done in lavf/lavc is
by checking whether AVCodecContext.codec is NULL. However it's desirable
to be able to set AVCodecContext.codec before avcodec_open2().

(cherry picked from commit af08d9aeea)

Conflicts:

	doc/APIchanges
This commit is contained in:
Anton Khirnov
2011-12-08 06:57:44 +01:00
parent 4b63cc18bc
commit 350d06d63f
6 changed files with 21 additions and 5 deletions
+3
View File
@@ -13,6 +13,9 @@ libavutil: 2011-04-18
API changes, most recent first:
2012-02-17 - xxxxxxx - lavc 53.35.0
Add avcodec_is_open() function.
2012-01-15 - lavc 53.34.0
New audio encoding API:
b2c75b6 Add CODEC_CAP_VARIABLE_FRAME_SIZE capability for use by audio