[Mplayer-cvslog] CVS: main/libmpdemux demux_viv.c,1.9,1.10

Alex Beregszaszi alex at mplayer.dev.hu
Thu Nov 22 16:08:43 CET 2001


Update of /cvsroot/mplayer/main/libmpdemux
In directory mplayer:/var/tmp.root/cvs-serv25189

Modified Files:
	demux_viv.c 
Log Message:
added support for demux_info

Index: demux_viv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_viv.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- demux_viv.c	16 Nov 2001 19:45:10 -0000	1.9
+++ demux_viv.c	22 Nov 2001 15:08:39 -0000	1.10
@@ -129,24 +129,28 @@
 	if (!strcmp(opt, "Title"))
 	{
 	    mp_msg(MSGT_DEMUX, MSGL_INFO, " Title: %s\n", param);
+	    demux_info_add(demux, "name", param);
 	    priv->title = malloc(strlen(param));
 	    strcpy(priv->title, param);
 	}
 	if (!strcmp(opt, "Author"))
 	{
 	    mp_msg(MSGT_DEMUX, MSGL_INFO, " Author: %s\n", param);
+	    demux_info_add(demux, "author", param);
 	    priv->author = malloc(strlen(param));
 	    strcpy(priv->author, param);
 	}
 	if (!strcmp(opt, "Copyright"))
 	{
 	    mp_msg(MSGT_DEMUX, MSGL_INFO, " Copyright: %s\n", param);
+	    demux_info_add(demux, "copyright", param);
 	    priv->copyright = malloc(strlen(param));
 	    strcpy(priv->copyright, param);
 	}
 	if (!strcmp(opt, "Producer"))
 	{
 	    mp_msg(MSGT_DEMUX, MSGL_INFO, " Producer: %s\n", param);
+	    demux_info_add(demux, "software", param);
 	    priv->producer = malloc(strlen(param));
 	    strcpy(priv->producer, param);
 	}
@@ -267,12 +271,12 @@
       len=stream_read_char(demux->stream);
       ds=demux->video;
       break;
-  case 0x30:  // audio ?
-      len=0x28;
+  case 0x30:  // audio packet
+      len=40;	/* 40kbps */
       ds=demux->audio;
       break;
   case 0x40:  // audio packet
-      len=24;
+      len=24;	/* 24kbps */
       ds=demux->audio;
       break;
   default:
@@ -522,6 +526,9 @@
 {		sh_audio_t* sh=new_sh_audio(demuxer,1);
 
 		sh->format=0x111; // 0x112
+//		if (sh->format == 0x111) /* G.723 */
+//		sh->samplesize = demuxer->audio->buffer_size;
+//		printf("samplesize: %d\n", sh->samplesize);
 		// Emulate WAVEFORMATEX struct:
 		sh->wf=malloc(sizeof(WAVEFORMATEX));
 		memset(sh->wf,0,sizeof(WAVEFORMATEX));




More information about the MPlayer-cvslog mailing list