Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2013-01-06 21:48:51 +0400
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2013-01-06 21:48:51 +0400
commit1ae9d2820e1181a1109c230d4f1e717443dcce2d (patch)
treef84cc0408b71350c81dbb784eb8c94cab1756006 /libavformat/spdif.h
parent9ff92cf1953d90e0e4f87f76f3f2f6439205a139 (diff)
Support decoding AC-3 in wav.
All known samples are actually ac3-in-spdif-in-wav, so use the spdif demuxer to get the ac3 frames.
Diffstat (limited to 'libavformat/spdif.h')
-rw-r--r--libavformat/spdif.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/spdif.h b/libavformat/spdif.h
index 4b11de20d1..0a0d962ba4 100644
--- a/libavformat/spdif.h
+++ b/libavformat/spdif.h
@@ -23,6 +23,7 @@
#define AVFORMAT_SPDIF_H
#include <stdint.h>
+#include "avformat.h"
#define SYNCWORD1 0xF872
#define SYNCWORD2 0x4E1F
@@ -58,5 +59,7 @@ static const uint16_t spdif_mpeg_pkt_offset[2][3] = {
};
void ff_spdif_bswap_buf16(uint16_t *dst, const uint16_t *src, int w);
+int ff_spdif_read_packet(AVFormatContext *s, AVPacket *pkt);
+int ff_spdif_probe(const uint8_t *p_buf, int buf_size, enum AVCodecID *codec);
#endif /* AVFORMAT_SPDIF_H */