Mercurial > mplayer.hg
comparison dec_video.c @ 1463:d377ea93892d
mpeg2 fourcc changed
author | arpi |
---|---|
date | Wed, 08 Aug 2001 13:38:16 +0000 |
parents | a776747517c0 |
children | 194c2f643d2c |
comparison
equal
deleted
inserted
replaced
1462:a776747517c0 | 1463:d377ea93892d |
---|---|
568 // exit(1); | 568 // exit(1); |
569 } | 569 } |
570 } | 570 } |
571 if(verbose) printf("OK!\n"); | 571 if(verbose) printf("OK!\n"); |
572 // sh_video=d_video->sh;sh_video->ds=d_video; | 572 // sh_video=d_video->sh;sh_video->ds=d_video; |
573 sh_video->format=0x10000001; // mpeg video | |
574 mpeg2_init(); | 573 mpeg2_init(); |
575 // ========= Read & process sequence header & extension ============ | 574 // ========= Read & process sequence header & extension ============ |
576 videobuffer=shmem_alloc(VIDEOBUFFER_SIZE); | 575 videobuffer=shmem_alloc(VIDEOBUFFER_SIZE); |
577 if(!videobuffer){ | 576 if(!videobuffer){ |
578 fprintf(stderr,"Cannot allocate shared memory\n"); | 577 fprintf(stderr,"Cannot allocate shared memory\n"); |
608 // GUI_MSG( mplMPEGErrorBadSeqHeaderExt ) | 607 // GUI_MSG( mplMPEGErrorBadSeqHeaderExt ) |
609 // exit(1); | 608 // exit(1); |
610 } | 609 } |
611 } | 610 } |
612 // display info: | 611 // display info: |
612 sh_video->format=picture->mpeg1?0x10000001:0x10000002; // mpeg video | |
613 sh_video->fps=frameratecode2framerate[picture->frame_rate_code]*0.0001f; | 613 sh_video->fps=frameratecode2framerate[picture->frame_rate_code]*0.0001f; |
614 if(!sh_video->fps){ | 614 if(!sh_video->fps){ |
615 // if(!force_fps){ | 615 // if(!force_fps){ |
616 // fprintf(stderr,"FPS not specified (or invalid) in the header! Use the -fps option!\n"); | 616 // fprintf(stderr,"FPS not specified (or invalid) in the header! Use the -fps option!\n"); |
617 // return 0; //exit(1); | 617 // return 0; //exit(1); |