1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00
Originally committed as revision 2387 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Alex Beregszaszi 2003-10-15 15:21:46 +00:00
parent ff49072013
commit 4b68410579

View File

@ -251,13 +251,20 @@ static int nut_write_header(AVFormatContext *s)
{
int tmp = codec_get_bmp_tag(codec->codec_id);
put_bi(bc, tmp);
nom = codec->frame_rate;
denom = codec->frame_rate_base;
}
else if (codec->codec_type == CODEC_TYPE_AUDIO)
{
int tmp = codec_get_wav_tag(codec->codec_id);
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;
denom = 8;
}