Mercurial > mplayer.hg
comparison libmpdemux/video.c @ 10687:f8d6f7d59ceb
- initial support for MPEG4 in TS (M4V is working, but not AAC yet)
patch by Nico <nsabbi@libero.it>
author | arpi |
---|---|
date | Sun, 24 Aug 2003 18:08:54 +0000 |
parents | dd64e1fe919d |
children | 9ab19ded1b39 |
comparison
equal
deleted
inserted
replaced
10686:8eb690f0e342 | 10687:f8d6f7d59ceb |
---|---|
84 // goto mpeg_header_parser; | 84 // goto mpeg_header_parser; |
85 } | 85 } |
86 #endif | 86 #endif |
87 break; | 87 break; |
88 } | 88 } |
89 case DEMUXER_TYPE_MPEG4_ES: { | 89 case DEMUXER_TYPE_MPEG4_ES: |
90 case DEMUXER_TYPE_MPEG4_IN_TS: { | |
90 videobuf_len=0; videobuf_code_len=0; | 91 videobuf_len=0; videobuf_code_len=0; |
91 mp_msg(MSGT_DECVIDEO,MSGL_V,"Searching for Video Object Start code... ");fflush(stdout); | 92 mp_msg(MSGT_DECVIDEO,MSGL_V,"Searching for Video Object Start code... ");fflush(stdout); |
92 while(1){ | 93 while(1){ |
93 int i=sync_video_packet(d_video); | 94 int i=sync_video_packet(d_video); |
94 if(i<=0x11F) break; // found it! | 95 if(i<=0x11F) break; // found it! |
408 sh_video->frametime=sh_video->frametime*5/4; | 409 sh_video->frametime=sh_video->frametime*5/4; |
409 mp_msg(MSGT_DECVIDEO,MSGL_INFO,MSGTR_EnterTelecineMode,sh_video->fps); | 410 mp_msg(MSGT_DECVIDEO,MSGL_INFO,MSGTR_EnterTelecineMode,sh_video->fps); |
410 telecine=1; | 411 telecine=1; |
411 } | 412 } |
412 | 413 |
413 } else if(demuxer->file_format==DEMUXER_TYPE_MPEG4_ES){ | 414 } else if((demuxer->file_format==DEMUXER_TYPE_MPEG4_ES) || (demuxer->file_format==DEMUXER_TYPE_MPEG4_IN_TS)){ |
414 // | 415 // |
415 while(videobuf_len<VIDEOBUFFER_SIZE-MAX_VIDEO_PACKET_SIZE){ | 416 while(videobuf_len<VIDEOBUFFER_SIZE-MAX_VIDEO_PACKET_SIZE){ |
416 int i=sync_video_packet(d_video); | 417 int i=sync_video_packet(d_video); |
417 if(!read_video_packet(d_video)) return -1; // EOF | 418 if(!read_video_packet(d_video)) return -1; // EOF |
418 if(i==0x1B6) break; | 419 if(i==0x1B6) break; |