Also bump a micro version and add an APIchanges entry saing that
av_frame_* should now be used instead of the lavc AVFrame functions.
---
doc/APIchanges | 5 +++++
libavcodec/avcodec.h | 5 +++--
libavcodec/utils.c | 2 +-
libavcodec/version.h | 2 +-
4 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/doc/APIchanges b/doc/APIchanges
index 1e380e9..4e63dc5 100644
--- a/doc/APIchanges
+++ b/doc/APIchanges
@@ -13,6 +13,11 @@ libavutil: 2012-10-22
API changes, most recent first:
+2013-12-xx - xxxxxxx - lavc 55.28.1 - avcodec.h
+ av_frame_alloc(), av_frame_unref() and av_frame_free() now can and should be
+ used instead of avcodec_alloc_frame(), avcodec_get_frame_defaults() and
+ avcodec_free_frame() respectively. The latter three functions are deprecated.
+
2013-11-xx - xxxxxxx- - lavu 52.19.0 - frame.h
Add AV_FRAME_DATA_A53_CC value to the AVFrameSideDataType enum, which
identifies ATSC A53 Part 4 Closed Captions data.
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index fd0ce9c..822bb87 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -3103,16 +3103,17 @@ int avcodec_copy_context(AVCodecContext *dest, const
AVCodecContext *src);
*/
attribute_deprecated
AVFrame *avcodec_alloc_frame(void);
-#endif
/**
* Set the fields of the given AVFrame to default values.
*
* @param frame The AVFrame of which the fields should be set to default
values.
+ *
+ * @deprecated use av_frame_unref()
*/
+attribute_deprecated
void avcodec_get_frame_defaults(AVFrame *frame);
-#if FF_API_AVFRAME_LAVC
/**
* Free the frame and any dynamically allocated objects in it,
* e.g. extended_data.
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index e078a11..1fa9cb8 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -801,6 +801,7 @@ enum AVPixelFormat avcodec_default_get_format(struct
AVCodecContext *s, const en
return fmt[0];
}
+#if FF_API_AVFRAME_LAVC
void avcodec_get_frame_defaults(AVFrame *frame)
{
if (frame->extended_data != frame->data)
@@ -815,7 +816,6 @@ void avcodec_get_frame_defaults(AVFrame *frame)
frame->extended_data = frame->data;
}
-#if FF_API_AVFRAME_LAVC
AVFrame *avcodec_alloc_frame(void)
{
AVFrame *frame = av_mallocz(sizeof(AVFrame));
diff --git a/libavcodec/version.h b/libavcodec/version.h
index c828dc8..2c3f2f2 100644
--- a/libavcodec/version.h
+++ b/libavcodec/version.h
@@ -28,7 +28,7 @@
#define LIBAVCODEC_VERSION_MAJOR 55
#define LIBAVCODEC_VERSION_MINOR 28
-#define LIBAVCODEC_VERSION_MICRO 0
+#define LIBAVCODEC_VERSION_MICRO 1
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
LIBAVCODEC_VERSION_MINOR, \
--
1.7.10.4
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel