OLD | NEW |
1 /** | 1 /** |
2 Copyright (C) 2005 Michael Ahlberg, Måns Rullgård | 2 Copyright (C) 2005 Michael Ahlberg, Måns Rullgård |
3 | 3 |
4 Permission is hereby granted, free of charge, to any person | 4 Permission is hereby granted, free of charge, to any person |
5 obtaining a copy of this software and associated documentation | 5 obtaining a copy of this software and associated documentation |
6 files (the "Software"), to deal in the Software without | 6 files (the "Software"), to deal in the Software without |
7 restriction, including without limitation the rights to use, copy, | 7 restriction, including without limitation the rights to use, copy, |
8 modify, merge, publish, distribute, sublicense, and/or sell copies | 8 modify, merge, publish, distribute, sublicense, and/or sell copies |
9 of the Software, and to permit persons to whom the Software is | 9 of the Software, and to permit persons to whom the Software is |
10 furnished to do so, subject to the following conditions: | 10 furnished to do so, subject to the following conditions: |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 }; | 88 }; |
89 | 89 |
90 struct ogg { | 90 struct ogg { |
91 struct ogg_stream *streams; | 91 struct ogg_stream *streams; |
92 int nstreams; | 92 int nstreams; |
93 int headers; | 93 int headers; |
94 int curidx; | 94 int curidx; |
95 struct ogg_state *state; | 95 struct ogg_state *state; |
96 }; | 96 }; |
97 | 97 |
| 98 struct oggvorbis_private { |
| 99 unsigned int len[3]; |
| 100 unsigned char *packet[3]; |
| 101 }; |
| 102 |
98 #define OGG_FLAG_CONT 1 | 103 #define OGG_FLAG_CONT 1 |
99 #define OGG_FLAG_BOS 2 | 104 #define OGG_FLAG_BOS 2 |
100 #define OGG_FLAG_EOS 4 | 105 #define OGG_FLAG_EOS 4 |
101 | 106 |
102 extern const struct ogg_codec ff_celt_codec; | 107 extern const struct ogg_codec ff_celt_codec; |
103 extern const struct ogg_codec ff_dirac_codec; | 108 extern const struct ogg_codec ff_dirac_codec; |
104 extern const struct ogg_codec ff_flac_codec; | 109 extern const struct ogg_codec ff_flac_codec; |
105 extern const struct ogg_codec ff_ogm_audio_codec; | 110 extern const struct ogg_codec ff_ogm_audio_codec; |
106 extern const struct ogg_codec ff_ogm_old_codec; | 111 extern const struct ogg_codec ff_ogm_old_codec; |
107 extern const struct ogg_codec ff_ogm_text_codec; | 112 extern const struct ogg_codec ff_ogm_text_codec; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 } else { | 144 } else { |
140 pts = gp; | 145 pts = gp; |
141 if (dts) | 146 if (dts) |
142 *dts = pts; | 147 *dts = pts; |
143 } | 148 } |
144 | 149 |
145 return pts; | 150 return pts; |
146 } | 151 } |
147 | 152 |
148 #endif /* AVFORMAT_OGGDEC_H */ | 153 #endif /* AVFORMAT_OGGDEC_H */ |
OLD | NEW |