diff options
author | Anssi Hannula <anssi.hannula@iki.fi> | 2010-12-29 18:48:32 +0000 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2010-12-29 18:48:32 +0000 |
commit | d8e481bb860747808220d2baf0cdec5a70c54c1e (patch) | |
tree | 7e92564d36a9255747469dc236569d4ab8a57c4e /libavformat/spdifdec.c | |
parent | ee1ba9c32608a7a8ac2770b3c636fa5d4067dd0a (diff) | |
download | ffmpeg-d8e481bb860747808220d2baf0cdec5a70c54c1e.tar.gz |
s/IEC958/IEC 61937 - IEC958 is a lower level format.
Patch by Anssi Hannula, anssi d hannula a iki d fi
Originally committed as revision 26141 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/spdifdec.c')
-rw-r--r-- | libavformat/spdifdec.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/libavformat/spdifdec.c b/libavformat/spdifdec.c index 81e94e7ef1..05a9145318 100644 --- a/libavformat/spdifdec.c +++ b/libavformat/spdifdec.c @@ -31,7 +31,7 @@ #include "libavcodec/aacadtsdec.h" static int spdif_get_offset_and_codec(AVFormatContext *s, - enum IEC958DataType data_type, + enum IEC61937DataType data_type, const char *buf, int *offset, enum CodecID *codec) { @@ -39,23 +39,23 @@ static int spdif_get_offset_and_codec(AVFormatContext *s, GetBitContext gbc; switch (data_type & 0xff) { - case IEC958_AC3: + case IEC61937_AC3: *offset = AC3_FRAME_SIZE << 2; *codec = CODEC_ID_AC3; break; - case IEC958_MPEG1_LAYER1: + case IEC61937_MPEG1_LAYER1: *offset = spdif_mpeg_pkt_offset[1][0]; *codec = CODEC_ID_MP1; break; - case IEC958_MPEG1_LAYER23: + case IEC61937_MPEG1_LAYER23: *offset = spdif_mpeg_pkt_offset[1][0]; *codec = CODEC_ID_MP3; break; - case IEC958_MPEG2_EXT: + case IEC61937_MPEG2_EXT: *offset = 4608; *codec = CODEC_ID_MP3; break; - case IEC958_MPEG2_AAC: + case IEC61937_MPEG2_AAC: init_get_bits(&gbc, buf, AAC_ADTS_HEADER_SIZE * 8); if (ff_aac_parse_header(&gbc, &aac_hdr)) { if (s) /* be silent during a probe */ @@ -65,27 +65,27 @@ static int spdif_get_offset_and_codec(AVFormatContext *s, *offset = aac_hdr.samples << 2; *codec = CODEC_ID_AAC; break; - case IEC958_MPEG2_LAYER1_LSF: + case IEC61937_MPEG2_LAYER1_LSF: *offset = spdif_mpeg_pkt_offset[0][0]; *codec = CODEC_ID_MP1; break; - case IEC958_MPEG2_LAYER2_LSF: + case IEC61937_MPEG2_LAYER2_LSF: *offset = spdif_mpeg_pkt_offset[0][1]; *codec = CODEC_ID_MP2; break; - case IEC958_MPEG2_LAYER3_LSF: + case IEC61937_MPEG2_LAYER3_LSF: *offset = spdif_mpeg_pkt_offset[0][2]; *codec = CODEC_ID_MP3; break; - case IEC958_DTS1: + case IEC61937_DTS1: *offset = 2048; *codec = CODEC_ID_DTS; break; - case IEC958_DTS2: + case IEC61937_DTS2: *offset = 4096; *codec = CODEC_ID_DTS; break; - case IEC958_DTS3: + case IEC61937_DTS3: *offset = 8192; *codec = CODEC_ID_DTS; break; @@ -164,7 +164,7 @@ static int spdif_read_header(AVFormatContext *s, AVFormatParameters *ap) static int spdif_read_packet(AVFormatContext *s, AVPacket *pkt) { ByteIOContext *pb = s->pb; - enum IEC958DataType data_type; + enum IEC61937DataType data_type; enum CodecID codec_id; uint32_t state = 0; int pkt_size_bits, offset, ret; |