comparison libmpdemux/demux_mpg.c @ 3975:04b2227ab75a

Return of the 'Old-style-DVD-support', with dynamic loading (using libdl) so no more conflict with libdvdread: you can compile in both of libdvdread and libcss support! You can even select libcss.so to load from command line or configuration file, with '-csslib /usr/local/lib/libcss.so' or something similar. Default for this option is /usr/local/lib/libcss.so. Note: libcss version (ver>0.1) with newer API is not supported in this version! This is the first version so stay tuned :)
author lgb
date Fri, 04 Jan 2002 13:08:14 +0000
parents ceab3c2f261e
children 6394c1e9e770
comparison
equal deleted inserted replaced
3974:90e7917f945f 3975:04b2227ab75a
219 if(ds){ 219 if(ds){
220 mp_dbg(MSGT_DEMUX,MSGL_DBG2,"DEMUX_MPG: Read %d data bytes from packet %04X\n",len,id); 220 mp_dbg(MSGT_DEMUX,MSGL_DBG2,"DEMUX_MPG: Read %d data bytes from packet %04X\n",len,id);
221 // printf("packet start = 0x%X \n",stream_tell(demux->stream)-packet_start_pos); 221 // printf("packet start = 0x%X \n",stream_tell(demux->stream)-packet_start_pos);
222 #ifdef HAVE_LIBCSS 222 #ifdef HAVE_LIBCSS
223 if (css) { 223 if (css) {
224 if (descrambling) CSSDescramble(demux->stream->buffer,key_title); else 224 if (descrambling) dvd_css_descramble(demux->stream->buffer,key_title); else
225 mp_msg(MSGT_DEMUX,MSGL_WARN,MSGTR_EncryptedVOBauth); 225 mp_msg(MSGT_DEMUX,MSGL_WARN,MSGTR_EncryptedVOBauth);
226 } 226 }
227 #endif 227 #endif
228 ds_read_packet(ds,demux->stream,len,pts/90000.0f,demux->filepos,0); 228 ds_read_packet(ds,demux->stream,len,pts/90000.0f,demux->filepos,0);
229 // if(ds==demux->sub) parse_dvdsub(ds->last->buffer,ds->last->len); 229 // if(ds==demux->sub) parse_dvdsub(ds->last->buffer,ds->last->len);