Mercurial > libavcodec.hg
comparison ac3dec.c @ 8281:f93efc084e41 libavcodec
Make av_log_missing_feature an internal function, and change its name
to ff_log_missing_feature.
author | stefano |
---|---|
date | Mon, 08 Dec 2008 21:21:38 +0000 |
parents | 63aba08af550 |
children | a5402e89a80c |
comparison
equal
deleted
inserted
replaced
8280:63aba08af550 | 8281:f93efc084e41 |
---|---|
33 #include <stddef.h> | 33 #include <stddef.h> |
34 #include <math.h> | 34 #include <math.h> |
35 #include <string.h> | 35 #include <string.h> |
36 | 36 |
37 #include "libavutil/crc.h" | 37 #include "libavutil/crc.h" |
38 #include "internal.h" | |
38 #include "ac3_parser.h" | 39 #include "ac3_parser.h" |
39 #include "ac3dec.h" | 40 #include "ac3dec.h" |
40 #include "ac3dec_data.h" | 41 #include "ac3dec_data.h" |
41 | 42 |
42 /** Large enough for maximum possible frame size when the specification limit is ignored */ | 43 /** Large enough for maximum possible frame size when the specification limit is ignored */ |
824 } while(i--); | 825 } while(i--); |
825 | 826 |
826 /* spectral extension strategy */ | 827 /* spectral extension strategy */ |
827 if (s->eac3 && (!blk || get_bits1(gbc))) { | 828 if (s->eac3 && (!blk || get_bits1(gbc))) { |
828 if (get_bits1(gbc)) { | 829 if (get_bits1(gbc)) { |
829 av_log_missing_feature(s->avctx, "Spectral extension", 1); | 830 ff_log_missing_feature(s->avctx, "Spectral extension", 1); |
830 return -1; | 831 return -1; |
831 } | 832 } |
832 /* TODO: parse spectral extension strategy info */ | 833 /* TODO: parse spectral extension strategy info */ |
833 } | 834 } |
834 | 835 |
849 } | 850 } |
850 | 851 |
851 /* check for enhanced coupling */ | 852 /* check for enhanced coupling */ |
852 if (s->eac3 && get_bits1(gbc)) { | 853 if (s->eac3 && get_bits1(gbc)) { |
853 /* TODO: parse enhanced coupling strategy info */ | 854 /* TODO: parse enhanced coupling strategy info */ |
854 av_log_missing_feature(s->avctx, "Enhanced coupling", 1); | 855 ff_log_missing_feature(s->avctx, "Enhanced coupling", 1); |
855 return -1; | 856 return -1; |
856 } | 857 } |
857 | 858 |
858 /* determine which channels are coupled */ | 859 /* determine which channels are coupled */ |
859 if (s->eac3 && s->channel_mode == AC3_CHMODE_STEREO) { | 860 if (s->eac3 && s->channel_mode == AC3_CHMODE_STEREO) { |