aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/raw.c
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2009-03-19 21:46:56 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2009-03-19 21:46:56 +0000
commit23d9cc45633021170bd504467d0099a5d4eb7694 (patch)
tree2bbe553a7cb0d20d88744af2036f1ad9cd61545f /libavformat/raw.c
parent45bae968a92633037e476a4892c4fa949ffe4508 (diff)
downloadffmpeg-23d9cc45633021170bd504467d0099a5d4eb7694.tar.gz
Support raw TrueHD files
Originally committed as revision 18049 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/raw.c')
-rw-r--r--libavformat/raw.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/libavformat/raw.c b/libavformat/raw.c
index ba73dca455..78662ae6e8 100644
--- a/libavformat/raw.c
+++ b/libavformat/raw.c
@@ -969,6 +969,35 @@ AVInputFormat mlp_demuxer = {
};
#endif
+#if CONFIG_TRUEHD_DEMUXER
+AVInputFormat truehd_demuxer = {
+ "truehd",
+ NULL_IF_CONFIG_SMALL("raw TrueHD"),
+ 0,
+ NULL,
+ audio_read_header,
+ ff_raw_read_partial_packet,
+ .flags= AVFMT_GENERIC_INDEX,
+ .extensions = "thd",
+ .value = CODEC_ID_TRUEHD,
+};
+#endif
+
+#if CONFIG_TRUEHD_MUXER
+AVOutputFormat truehd_muxer = {
+ "truehd",
+ NULL_IF_CONFIG_SMALL("raw TrueHD"),
+ NULL,
+ "thd",
+ 0,
+ CODEC_ID_TRUEHD,
+ CODEC_ID_NONE,
+ NULL,
+ raw_write_packet,
+ .flags= AVFMT_NOTIMESTAMPS,
+};
+#endif
+
#if CONFIG_MPEG1VIDEO_MUXER
AVOutputFormat mpeg1video_muxer = {
"mpeg1video",