diff options
author | Diego Biurrun <diego@biurrun.de> | 2015-02-25 13:50:15 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2015-03-04 13:29:33 +0100 |
commit | 25f613f8be3b51e4396b93cda131e4631ba54302 (patch) | |
tree | 1756308545fcc7ac113d975027085e63787942bd /libavcodec/dcadec.c | |
parent | 1dc19729e92a96620000e09eba8e58cb458c9486 (diff) | |
download | ffmpeg-25f613f8be3b51e4396b93cda131e4631ba54302.tar.gz |
dca: Move syncword definitions to a separate header
Diffstat (limited to 'libavcodec/dcadec.c')
-rw-r--r-- | libavcodec/dcadec.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libavcodec/dcadec.c b/libavcodec/dcadec.c index ad111c366a..316affb6b8 100644 --- a/libavcodec/dcadec.c +++ b/libavcodec/dcadec.c @@ -37,6 +37,7 @@ #include "avcodec.h" #include "dca.h" +#include "dca_syncwords.h" #include "dcadata.h" #include "dcadsp.h" #include "dcahuff.h" @@ -1100,7 +1101,7 @@ static int dca_decode_frame(AVCodecContext *avctx, void *data, uint32_t bits = get_bits_long(&s->gb, 32); switch (bits) { - case 0x5a5a5a5a: { + case DCA_SYNCWORD_XCH: { int ext_amode, xch_fsize; s->xch_base_channel = s->prim_channels; @@ -1137,7 +1138,7 @@ static int dca_decode_frame(AVCodecContext *avctx, void *data, s->xch_present = 1; break; } - case 0x47004a03: + case DCA_SYNCWORD_XXCH: /* XXCh: extended channels */ /* usually found either in core or HD part in DTS-HD HRA streams, * but not in DTS-ES which contains XCh extensions instead */ @@ -1174,7 +1175,7 @@ static int dca_decode_frame(AVCodecContext *avctx, void *data, /* check for ExSS (HD part) */ if (s->dca_buffer_size - s->frame_size > 32 && - get_bits_long(&s->gb, 32) == DCA_HD_MARKER) + get_bits_long(&s->gb, 32) == DCA_SYNCWORD_SUBSTREAM) ff_dca_exss_parse_header(s); avctx->profile = s->profile; |