Commit e358a467 authored by alex's avatar alex

10l


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2387 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1102c177
...@@ -251,13 +251,20 @@ static int nut_write_header(AVFormatContext *s) ...@@ -251,13 +251,20 @@ static int nut_write_header(AVFormatContext *s)
{ {
int tmp = codec_get_bmp_tag(codec->codec_id); int tmp = codec_get_bmp_tag(codec->codec_id);
put_bi(bc, tmp); put_bi(bc, tmp);
nom = codec->frame_rate;
denom = codec->frame_rate_base;
} }
else if (codec->codec_type == CODEC_TYPE_AUDIO) else if (codec->codec_type == CODEC_TYPE_AUDIO)
{ {
int tmp = codec_get_wav_tag(codec->codec_id); int tmp = codec_get_wav_tag(codec->codec_id);
put_bi(bc, tmp); put_bi(bc, tmp);
}
if (codec->codec_type == CODEC_TYPE_VIDEO)
{
nom = codec->frame_rate;
denom = codec->frame_rate_base;
}
else
{
nom = codec->sample_rate/8; nom = codec->sample_rate/8;
denom = 8; denom = 8;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment