summaryrefslogtreecommitdiff
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-02-19 12:00:03 +0100
committerAnton Khirnov <anton@khirnov.net>2014-03-24 06:07:50 +0100
commit0e2c3ee9a335d8a0a5edf0509e222e804d7b2619 (patch)
treee619cc66ad731d9dfb7dce11147d8183ef7df98d /libavcodec/avcodec.h
parent54f7881615a5ce2f89283e7ac2015b8ef141537c (diff)
lavc: give a typedeffed name to the AVPacket.side_data struct
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 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;
/**