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().
This commit is contained in:
Anton Khirnov
2012-01-31 07:55:24 +01:00
parent f7fe41a04f
commit af08d9aeea
5 changed files with 20 additions and 4 deletions
+3
View File
@@ -13,6 +13,9 @@ libavutil: 2011-04-18
API changes, most recent first:
2012-01-31 - xxxxxxx - lavc 54.01.0
Add avcodec_is_open() function.
2012-01-30 - xxxxxxx - lavu 51.22.0 - intfloat.h
Add a new installed header libavutil/intfloat.h with int/float punning
functions.