1
mirror of https://github.com/mpv-player/mpv synced 2025-01-13 00:06:25 +01:00

num_elementary_packets1xx reset

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1660 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2001-08-23 13:20:25 +00:00
parent aa7414a685
commit 75783e75e7

View File

@ -326,6 +326,7 @@ int ds_get_packet_sub(demux_stream_t *ds,unsigned char **start){
extern int num_elementary_packets100; // for MPEG-ES fileformat detection
extern int num_elementary_packets101;
extern int num_elementary_packetsPES;
extern int num_elementary_packets1B6;
// commandline options, flags:
//extern int seek_to_byte;
@ -354,6 +355,8 @@ demux_stream_t *d_video=NULL;
sh_audio_t *sh_audio=NULL;
sh_video_t *sh_video=NULL;
//printf("demux_open(%p,%d,%d,%d,%d) \n",stream,file_format,audio_id,video_id,dvdsub_id);
//=============== Try to open as AVI file: =================
if(file_format==DEMUXER_TYPE_UNKNOWN || file_format==DEMUXER_TYPE_AVI){
demuxer=new_demuxer(stream,DEMUXER_TYPE_AVI,audio_id,video_id,dvdsub_id);
@ -383,6 +386,11 @@ if(file_format==DEMUXER_TYPE_UNKNOWN || file_format==DEMUXER_TYPE_MPEG_PS){
while(pes>=0){
demuxer=new_demuxer(stream,DEMUXER_TYPE_MPEG_PS,audio_id,video_id,dvdsub_id);
if(!pes) demuxer->synced=1; // hack!
num_elementary_packets100=0;
num_elementary_packets101=0;
num_elementary_packets1B6=0;
num_elementary_packetsPES=0;
if(ds_fill_buffer(demuxer->video)){
if(!pes)
mp_msg(MSGT_DEMUXER,MSGL_INFO,MSGTR_DetectedMPEGPESfile);