summaryrefslogtreecommitdiff
path: root/contrib/ffmpeg/libavutil/integer.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ffmpeg/libavutil/integer.c')
-rw-r--r--contrib/ffmpeg/libavutil/integer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/ffmpeg/libavutil/integer.c b/contrib/ffmpeg/libavutil/integer.c
index 3269a366a..a7ab5c97f 100644
--- a/contrib/ffmpeg/libavutil/integer.c
+++ b/contrib/ffmpeg/libavutil/integer.c
@@ -17,7 +17,6 @@
* You should have received a copy of the GNU Lesser General Public
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- *
*/
/**
@@ -157,7 +156,7 @@ int64_t av_i2int(AVInteger a){
return out;
}
-#if 0
+#ifdef TEST
#undef NDEBUG
#include <assert.h>
@@ -172,7 +171,7 @@ const uint8_t ff_log2_tab[256]={
7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7
};
-main(){
+int main(void){
int64_t a,b;
for(a=7; a<256*256*256; a+=13215){
@@ -193,5 +192,6 @@ main(){
assert(av_i2int(av_div_i(ai,bi)) == a/b);
}
}
+ return 0;
}
#endif