Mercurial > mplayer.hg
comparison mencoder.c @ 4453:71d05615a378
Providing new tune info
author | nick |
---|---|
date | Fri, 01 Feb 2002 08:50:45 +0000 |
parents | 6310422b9557 |
children | 3c556f8a4159 |
comparison
equal
deleted
inserted
replaced
4452:bef7b760bc80 | 4453:71d05615a378 |
---|---|
321 demux_stream_t *d_video=NULL; | 321 demux_stream_t *d_video=NULL; |
322 demux_stream_t *d_dvdsub=NULL; | 322 demux_stream_t *d_dvdsub=NULL; |
323 sh_audio_t *sh_audio=NULL; | 323 sh_audio_t *sh_audio=NULL; |
324 sh_video_t *sh_video=NULL; | 324 sh_video_t *sh_video=NULL; |
325 int file_format=DEMUXER_TYPE_UNKNOWN; | 325 int file_format=DEMUXER_TYPE_UNKNOWN; |
326 int i; | 326 int i,pitches[3]; |
327 unsigned int out_fmt; | 327 unsigned int out_fmt; |
328 | 328 |
329 aviwrite_t* muxer=NULL; | 329 aviwrite_t* muxer=NULL; |
330 aviwrite_stream_t* mux_a=NULL; | 330 aviwrite_stream_t* mux_a=NULL; |
331 aviwrite_stream_t* mux_v=NULL; | 331 aviwrite_stream_t* mux_v=NULL; |
567 vo_image_ptr = vo_image = malloc(vo_w*vo_h*IMGFMT_BGR_DEPTH(out_fmt)/8); | 567 vo_image_ptr = vo_image = malloc(vo_w*vo_h*IMGFMT_BGR_DEPTH(out_fmt)/8); |
568 | 568 |
569 if (IMGFMT_IS_RGB(out_fmt)) | 569 if (IMGFMT_IS_RGB(out_fmt)) |
570 vo_image_ptr = vo_image = malloc(vo_w*vo_h*IMGFMT_RGB_DEPTH(out_fmt)/8); | 570 vo_image_ptr = vo_image = malloc(vo_w*vo_h*IMGFMT_RGB_DEPTH(out_fmt)/8); |
571 | 571 |
572 if(!init_video(sh_video)){ | 572 if(!init_video(sh_video,pitches)){ |
573 mp_msg(MSGT_MENCODER,MSGL_FATAL,MSGTR_CouldntInitVideoCodec); | 573 mp_msg(MSGT_MENCODER,MSGL_FATAL,MSGTR_CouldntInitVideoCodec); |
574 exit(1); | 574 exit(1); |
575 } | 575 } |
576 | 576 |
577 } // if(out_video_codec) | 577 } // if(out_video_codec) |