diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2003-10-15 15:21:46 +0000 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2003-10-15 15:21:46 +0000 |
commit | 4b6841057980d041ca807193f2562546280a58b6 (patch) | |
tree | 83c906b027f62d6ff80f8c84eac74542973502f3 /libavformat/nut.c | |
parent | ff490720135b7b3d2e7e33cce8f6bc843e4333ab (diff) | |
download | ffmpeg-4b6841057980d041ca807193f2562546280a58b6.tar.gz |
10l
Originally committed as revision 2387 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/nut.c')
-rw-r--r-- | libavformat/nut.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libavformat/nut.c b/libavformat/nut.c index 8a8c3d5bd3..4a0d9418de 100644 --- a/libavformat/nut.c +++ b/libavformat/nut.c @@ -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; } |