comparison utils.c @ 1567:e2fcff5c3d7d libavformat

gcc 2.95 fix
author michael
date Tue, 12 Dec 2006 12:24:30 +0000
parents bef95ed80667
children d440e6a53bae
comparison
equal deleted inserted replaced
1566:bef95ed80667 1567:e2fcff5c3d7d
1761 #define MAX_STREAM_DURATION ((int)(AV_TIME_BASE * 3.0)) 1761 #define MAX_STREAM_DURATION ((int)(AV_TIME_BASE * 3.0))
1762 1762
1763 #define MAX_STD_TIMEBASES (60*12+3) 1763 #define MAX_STD_TIMEBASES (60*12+3)
1764 static int get_std_framerate(int i){ 1764 static int get_std_framerate(int i){
1765 if(i<60*12) return i*1001; 1765 if(i<60*12) return i*1001;
1766 else return (int[]){24,30,60}[i-60*12]*1000*12; 1766 else return ((int[]){24,30,60})[i-60*12]*1000*12;
1767 } 1767 }
1768 1768
1769 /** 1769 /**
1770 * Read the beginning of a media file to get stream information. This 1770 * Read the beginning of a media file to get stream information. This
1771 * is useful for file formats with no headers such as MPEG. This 1771 * is useful for file formats with no headers such as MPEG. This