diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-12-28 19:47:37 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-12-28 19:47:37 +0000 |
commit | 2df3bed0bf14115d453045dd52d3f83af7077a0f (patch) | |
tree | 47326d81535e1a9195b7f16add4df7144c362b70 /mplayer.c | |
parent | 29d389f15d5280ca0fc0fb390e95674160dd6eec (diff) | |
download | mpv-2df3bed0bf14115d453045dd52d3f83af7077a0f.tar.bz2 mpv-2df3bed0bf14115d453045dd52d3f83af7077a0f.tar.xz |
some spudec cleanup
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3844 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -2215,16 +2215,11 @@ if(rel_seek_secs || abs_seek_pos){ // DVD sub: if(vo_spudec){ unsigned char* packet=NULL; - int len=ds_get_packet_sub(d_dvdsub,&packet); + int len; current_module="spudec"; - if(len>=2){ - int len2; - len2=(packet[0]<<8)+packet[1]; - mp_msg(MSGT_CPLAYER,MSGL_V,"\rDVD sub: %d / %d v_pts=%5.3f s_pts=%5.3f \n",len,len2,d_video->pts,d_dvdsub->pts); + while((len=ds_get_packet_sub(d_dvdsub,&packet))>0){ + mp_msg(MSGT_CPLAYER,MSGL_V,"\rDVD sub: len=%d v_pts=%5.3f s_pts=%5.3f \n",len,d_video->pts,d_dvdsub->pts); spudec_assemble(vo_spudec,packet,len,100*d_dvdsub->pts); - } else { - if(len>=0) - mp_msg(MSGT_CPLAYER,MSGL_V,"invalid dvd sub\n"); } spudec_heartbeat(vo_spudec,100*d_video->pts); current_module=NULL; |