Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(256)

Side by Side Diff: libavformat/oggdec.h

Issue 9373002: Fix valgrind and asan memory leaks and crashes. (Closed) Base URL: ssh://gerrit.chromium.org:29418/chromium/third_party/ffmpeg.git@master
Patch Set: Make vp3 fix an ignore. Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « libavformat/mov.c ('k') | libavformat/oggdec.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 */
OLDNEW
« no previous file with comments | « libavformat/mov.c ('k') | libavformat/oggdec.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698