changeset 282:a864d92bf6b8 libavformat

10l
author alex
date Wed, 15 Oct 2003 15:21:46 +0000
parents ee009afcc2a1
children dcc3f5510818
files nut.c
diffstat 1 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/nut.c	Wed Oct 15 03:53:40 2003 +0000
+++ b/nut.c	Wed Oct 15 15:21:46 2003 +0000
@@ -251,13 +251,20 @@
 	{
 	    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;
 	}