提交 590403c7 编写于 作者: F Fabrice Bellard

removed warnings

Originally committed as revision 2059 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 019ac05a
......@@ -406,7 +406,6 @@ static int mpeg_mux_end(AVFormatContext *ctx)
static int mpegps_probe(AVProbeData *p)
{
int code, c, i;
const uint8_t *d;
code = 0xff;
/* we search the first start code. If it is a packet start code,
......
......@@ -26,7 +26,7 @@ static int yuv4_write_header(AVFormatContext *s)
{
AVStream *st;
int width, height;
int raten, rated, aspectn, aspectd, fps, fps1, n, gcd;
int raten, rated, aspectn, aspectd, n;
char buf[Y4M_LINE_MAX+1];
if (s->nb_streams != 1)
......@@ -40,6 +40,9 @@ static int yuv4_write_header(AVFormatContext *s)
//this is identical to the code below for exact fps
av_reduce(&raten, &rated, st->codec.frame_rate, st->codec.frame_rate_base, (1UL<<31)-1);
#else
{
int gcd, fps, fps1;
fps = st->codec.frame_rate;
fps1 = (((float)fps / st->codec.frame_rate_base) * 1000);
......@@ -86,6 +89,7 @@ static int yuv4_write_header(AVFormatContext *s)
rated /= gcd;
break;
}
}
#endif
aspectn = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册