diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-02-25 18:05:55 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-02-29 14:16:25 +0100 |
commit | dd2a4bcfd72eee85710142943a1c68ac02520771 (patch) | |
tree | c7bb50d89cf364659b550ed2ca910e9e87803fa5 /libavformat/avformat.h | |
parent | a93b09cb45b86427d6e81fa51c660877d8d5fd17 (diff) | |
download | ffmpeg-dd2a4bcfd72eee85710142943a1c68ac02520771.tar.gz |
lavf: generic code for exporting attached pictures.
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 1aa18d8213..65ed376c89 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -530,6 +530,13 @@ typedef struct AVIndexEntry { #define AV_DISPOSITION_HEARING_IMPAIRED 0x0080 /**< stream for hearing impaired audiences */ #define AV_DISPOSITION_VISUAL_IMPAIRED 0x0100 /**< stream for visual impaired audiences */ #define AV_DISPOSITION_CLEAN_EFFECTS 0x0200 /**< stream without voice */ +/** + * The stream is stored in the file as an attached picture/"cover art" (e.g. + * APIC frame in ID3v2). The single packet associated with it will be returned + * among the first few packets read from the file unless seeking takes place. + * It can also be accessed at any time in AVStream.attached_pic. + */ +#define AV_DISPOSITION_ATTACHED_PIC 0x0400 /** * Stream structure. @@ -602,6 +609,15 @@ typedef struct AVStream { */ AVRational avg_frame_rate; + /** + * For streams with AV_DISPOSITION_ATTACHED_PIC disposition, this packet + * will contain the attached picture. + * + * decoding: set by libavformat, must not be modified by the caller. + * encoding: unused + */ + AVPacket attached_pic; + /***************************************************************** * All fields below this line are not part of the public API. They * may not be used outside of libavformat and can be changed and |