changeset 20926:623e0adc71a2

update to libnut, no nut_skip_packet()
author ods15
date Wed, 15 Nov 2006 11:36:22 +0000
parents 74b8d7cf4edb
children 8a38c076aca5
files libmpdemux/demux_nut.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_nut.c	Wed Nov 15 11:26:05 2006 +0000
+++ b/libmpdemux/demux_nut.c	Wed Nov 15 11:36:22 2006 +0000
@@ -202,7 +202,8 @@
 		ds = demuxer->video;
 	}
 	else {
-		ret = nut_skip_packet(nut, &pd.len);
+		uint8_t buf[pd.len];
+		ret = nut_read_frame(nut, &pd.len, buf);
 		if (ret < 0) {
 			mp_msg(MSGT_HEADER, MSGL_ERR, "NUT error: %s\n",
 			                               nut_error(-ret));