[FFmpeg-soc] [soc]: r3414 - vorbis_enc/decoder/main.c

ods15 subversion at mplayerhq.hu
Sun Aug 17 23:39:04 CEST 2008


Author: ods15
Date: Sun Aug 17 23:39:03 2008
New Revision: 3414

Log:
update vorbis decoder main to libnut API

Modified:
   vorbis_enc/decoder/main.c

Modified: vorbis_enc/decoder/main.c
==============================================================================
--- vorbis_enc/decoder/main.c	(original)
+++ vorbis_enc/decoder/main.c	Sun Aug 17 23:39:03 2008
@@ -22,7 +22,7 @@
 #include <inttypes.h>
 #include <stdlib.h>
 #include <stdio.h>
-#include <nut.h>
+#include <libnut.h>
 
 typedef struct vorbis_context_s vorbis_context_t;
 int vorbis_read_headers(vorbis_context_t * vc, uint8_t * buf, int len);
@@ -33,7 +33,7 @@ void vorbis_uninit(vorbis_context_t * vc
 int main(int argc, char * argv []) {
 	nut_packet_t pd;
 	FILE * file = argv[1] ? fopen(argv[1], "r") : stdin;
-	nut_demuxer_opts_t dopts = { { file, NULL, NULL, NULL }, { NULL }, 1 };
+	nut_demuxer_opts_t dopts = { { file, NULL, NULL, NULL }, { NULL }, 1, 1 };
 	nut_context_t * nut = nut_demuxer_init(&dopts);
 	vorbis_context_t * vc = vorbis_init();
 	nut_stream_header_t * s = NULL;



More information about the FFmpeg-soc mailing list