diff options
author | Cyril Comparon <cyril.comparon@gmail.com> | 2009-05-12 12:35:46 +0000 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2009-05-12 12:35:46 +0000 |
commit | 5f1ac36dd2f7f04a3a213f717757c16a1287bda6 (patch) | |
tree | 894cabb076870b6a30399e7b3ab37a9ab11bd6a4 /libavformat/asf.h | |
parent | de9618013711ebc4d562c8fe4c53f51a90b2afe0 (diff) | |
download | ffmpeg-5f1ac36dd2f7f04a3a213f717757c16a1287bda6.tar.gz |
Per-stream language-tags extraction in asfdec.
Patch by Cyril Comparon: gmail(name, surname);
Original thread: Suggestion for a centralized language-tag facility in libavformat
Date: 04/10/2009 07:33 PM
Originally committed as revision 18800 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/asf.h')
-rw-r--r-- | libavformat/asf.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/asf.h b/libavformat/asf.h index 6d6619dcc8..f322ee2a58 100644 --- a/libavformat/asf.h +++ b/libavformat/asf.h @@ -42,6 +42,8 @@ typedef struct { int64_t packet_pos; + uint16_t stream_language_index; + } ASFStream; typedef uint8_t ff_asf_guid[16]; @@ -85,6 +87,7 @@ typedef struct { int asfid2avid[128]; ///< conversion table from asf ID 2 AVStream ID ASFStream streams[128]; ///< it's max number and it's not that big uint32_t stream_bitrates[128]; ///< max number of streams, bitrate for each (for streaming) + char stream_languages[128][6]; ///< max number of streams, language for each (RFC1766, e.g. en-US) /* non streamed additonnal info */ uint64_t nb_packets; ///< how many packets are there in the file, invalid if broadcasting int64_t duration; ///< in 100ns units @@ -157,6 +160,7 @@ extern const ff_asf_guid ff_asf_ext_stream_embed_stream_header; extern const ff_asf_guid ff_asf_ext_stream_audio_stream; extern const ff_asf_guid ff_asf_metadata_header; extern const ff_asf_guid ff_asf_my_guid; +extern const ff_asf_guid ff_asf_language_guid; extern const AVMetadataConv ff_asf_metadata_conv[]; |