changeset 21723:a804f969af97

Sync to libnut, nom->num
author ods15
date Sat, 23 Dec 2006 12:34:31 +0000
parents 5b9a0c061d9f
children 019171a44e19
files libmpdemux/demux_nut.c
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_nut.c	Sat Dec 23 12:12:39 2006 +0000
+++ b/libmpdemux/demux_nut.c	Sat Dec 23 12:34:31 2006 +0000
@@ -104,20 +104,20 @@
 
 			sh_audio->wf= wf; sh_audio->ds = demuxer->audio;
 			sh_audio->audio.dwSampleSize = 0; // FIXME
-			sh_audio->audio.dwScale = s[i].time_base.nom;
+			sh_audio->audio.dwScale = s[i].time_base.num;
 			sh_audio->audio.dwRate = s[i].time_base.den;
 			sh_audio->format = 0;
 			for (j = 0; j < s[i].fourcc_len && j < 4; j++)
 				sh_audio->format |= s[i].fourcc[j]<<(j*8);
 			sh_audio->channels = s[i].channel_count;
 			sh_audio->samplerate =
-				s[i].samplerate_nom / s[i].samplerate_denom;
+				s[i].samplerate_num / s[i].samplerate_denom;
 			sh_audio->i_bps = 0; // FIXME
 
 			wf->wFormatTag = sh_audio->format;
 			wf->nChannels = s[i].channel_count;
 			wf->nSamplesPerSec =
-				s[i].samplerate_nom / s[i].samplerate_denom;
+				s[i].samplerate_num / s[i].samplerate_denom;
 			wf->nAvgBytesPerSec = 0; // FIXME
 			wf->nBlockAlign = 0; // FIXME
 			wf->wBitsPerSample = 0; // FIXME
@@ -141,7 +141,7 @@
 			sh_video->ds = demuxer->video;
 			sh_video->disp_w = s[i].width;
 			sh_video->disp_h = s[i].height;
-			sh_video->video.dwScale = s[i].time_base.nom;
+			sh_video->video.dwScale = s[i].time_base.num;
 			sh_video->video.dwRate  = s[i].time_base.den;
 
 			sh_video->fps = sh_video->video.dwRate/
@@ -196,7 +196,7 @@
 		return 0; // fatal error
 	}
 
-	pts = (double)pd.pts * priv->s[pd.stream].time_base.nom /
+	pts = (double)pd.pts * priv->s[pd.stream].time_base.num /
 	                       priv->s[pd.stream].time_base.den;
 
 	if (pd.stream == demuxer->audio->id)  {
@@ -256,7 +256,7 @@
 
 	if (flags & 2) // percent
 		time_pos *= priv->s[0].max_pts *
-		               (double)priv->s[0].time_base.nom /
+		               (double)priv->s[0].time_base.num /
 		                       priv->s[0].time_base.den;
 
 	while ((ret = nut_seek(nut, time_pos, nutflags, tmp)) == NUT_ERR_EAGAIN);
@@ -271,7 +271,7 @@
 	switch (cmd) {
 		case DEMUXER_CTRL_GET_TIME_LENGTH:
 			*((double *)arg) = priv->s[0].max_pts *
-				(double)priv->s[0].time_base.nom /
+				(double)priv->s[0].time_base.num /
 				        priv->s[0].time_base.den;
 			return DEMUXER_CTRL_OK;
 		case DEMUXER_CTRL_GET_PERCENT_POS: