Mercurial > mplayer.hg
comparison mencoder.c @ 5149:66b7488f9dd4
removed pitches[] mess
author | arpi |
---|---|
date | Sat, 16 Mar 2002 22:51:07 +0000 |
parents | 76acf5bbda78 |
children | f99487594e08 |
comparison
equal
deleted
inserted
replaced
5148:8a3fdb124039 | 5149:66b7488f9dd4 |
---|---|
370 demux_stream_t *d_video=NULL; | 370 demux_stream_t *d_video=NULL; |
371 demux_stream_t *d_dvdsub=NULL; | 371 demux_stream_t *d_dvdsub=NULL; |
372 sh_audio_t *sh_audio=NULL; | 372 sh_audio_t *sh_audio=NULL; |
373 sh_video_t *sh_video=NULL; | 373 sh_video_t *sh_video=NULL; |
374 int file_format=DEMUXER_TYPE_UNKNOWN; | 374 int file_format=DEMUXER_TYPE_UNKNOWN; |
375 int i,pitches[3]; | 375 int i; |
376 unsigned int out_fmt; | 376 unsigned int out_fmt; |
377 | 377 |
378 aviwrite_t* muxer=NULL; | 378 aviwrite_t* muxer=NULL; |
379 aviwrite_stream_t* mux_a=NULL; | 379 aviwrite_stream_t* mux_a=NULL; |
380 aviwrite_stream_t* mux_v=NULL; | 380 aviwrite_stream_t* mux_v=NULL; |
622 vo_image_ptr = vo_image = malloc(vo_w*vo_h*IMGFMT_BGR_DEPTH(out_fmt)/8); | 622 vo_image_ptr = vo_image = malloc(vo_w*vo_h*IMGFMT_BGR_DEPTH(out_fmt)/8); |
623 | 623 |
624 if (IMGFMT_IS_RGB(out_fmt)) | 624 if (IMGFMT_IS_RGB(out_fmt)) |
625 vo_image_ptr = vo_image = malloc(vo_w*vo_h*IMGFMT_RGB_DEPTH(out_fmt)/8); | 625 vo_image_ptr = vo_image = malloc(vo_w*vo_h*IMGFMT_RGB_DEPTH(out_fmt)/8); |
626 | 626 |
627 if(!init_video(sh_video,pitches)){ | 627 if(!init_video(sh_video,NULL)){ |
628 mp_msg(MSGT_MENCODER,MSGL_FATAL,MSGTR_CouldntInitVideoCodec); | 628 mp_msg(MSGT_MENCODER,MSGL_FATAL,MSGTR_CouldntInitVideoCodec); |
629 mencoder_exit(1,NULL); | 629 mencoder_exit(1,NULL); |
630 } | 630 } |
631 | 631 |
632 } // if(out_video_codec) | 632 } // if(out_video_codec) |