aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-03-24 13:27:33 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-03-24 13:27:33 +0100
commitbd34e26b27e9ec83727dedd1c04c40d8a245cfa8 (patch)
treeb1b9eebb64b644361b38aae2fa00fb2a6b9cfb40 /libavcodec/avcodec.h
parent9456a8628b4054d11c0b652ee0d4f1b61c3b9464 (diff)
parent0e2c3ee9a335d8a0a5edf0509e222e804d7b2619 (diff)
downloadffmpeg-bd34e26b27e9ec83727dedd1c04c40d8a245cfa8.tar.gz
Merge commit '0e2c3ee9a335d8a0a5edf0509e222e804d7b2619'
* commit '0e2c3ee9a335d8a0a5edf0509e222e804d7b2619': lavc: give a typedeffed name to the AVPacket.side_data struct Conflicts: doc/APIchanges libavcodec/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index add0e5ebfc..818172257d 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -1067,6 +1067,12 @@ enum AVPacketSideDataType {
AV_PKT_DATA_METADATA_UPDATE,
};
+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
@@ -1123,11 +1129,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;
/**