From 0e2c3ee9a335d8a0a5edf0509e222e804d7b2619 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 19 Feb 2014 12:00:03 +0100 Subject: [PATCH] lavc: give a typedeffed name to the AVPacket.side_data struct --- doc/APIchanges | 4 ++++ libavcodec/avcodec.h | 12 +++++++----- libavcodec/version.h | 4 ++-- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/doc/APIchanges b/doc/APIchanges index 38d18bc826..cfa3068c6d 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -13,6 +13,10 @@ libavutil: 2013-12-xx API changes, most recent first: +2014-02-xx - xxxxxxx - lavc 55.35.0 - avcodec.h + Give the name AVPacketSideData to the previously anonymous struct used for + AVPacket.side_data. + 2014-xx-xx - xxxxxxx - lavu 53.06.0 - pixfmt.h Add RGBA64 pixel format and variants. diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 7beb2772d7..a870a2b9fb 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -925,6 +925,12 @@ enum AVPacketSideDataType { AV_PKT_DATA_H263_MB_INFO, }; +typedef struct AVPacketSideData { + uint8_t *data; + int size; + enum AVPacketSideDataType type; +} AVPacketSideData; + /** * This structure stores compressed data. It is typically exported by demuxers * and then passed as input to decoders, or received as output from encoders and @@ -981,11 +987,7 @@ typedef struct AVPacket { * Additional packet data that can be provided by the container. * Packet can contain several types of side information. */ - struct { - uint8_t *data; - int size; - enum AVPacketSideDataType type; - } *side_data; + AVPacketSideData *side_data; int side_data_elems; /** diff --git a/libavcodec/version.h b/libavcodec/version.h index 5ab49d5cd9..d2f80ad442 100644 --- a/libavcodec/version.h +++ b/libavcodec/version.h @@ -29,8 +29,8 @@ #include "libavutil/version.h" #define LIBAVCODEC_VERSION_MAJOR 55 -#define LIBAVCODEC_VERSION_MINOR 34 -#define LIBAVCODEC_VERSION_MICRO 1 +#define LIBAVCODEC_VERSION_MINOR 35 +#define LIBAVCODEC_VERSION_MICRO 0 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \ LIBAVCODEC_VERSION_MINOR, \