mirror of https://github.com/mpv-player/mpv
update to libnut, no nut_skip_packet()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20942 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
e7c9a5bbe4
commit
41e99a2c76
|
@ -202,7 +202,8 @@ static int demux_nut_fill_buffer(demuxer_t * demuxer, demux_stream_t * dsds) {
|
|||
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));
|
||||
|
|
Loading…
Reference in New Issue