comparison libmpcodecs/ve_rawrgb.c @ 7368:a894e99c1e51

changing return type of put_image void->int
author arpi
date Tue, 10 Sep 2002 22:18:32 +0000
parents 1e47c2e7aa8e
children 27da710563c2
comparison
equal deleted inserted replaced
7367:5b0baab4c4fd 7368:a894e99c1e51
44 static int query_format(struct vf_instance_s* vf, unsigned int fmt){ 44 static int query_format(struct vf_instance_s* vf, unsigned int fmt){
45 if(fmt==IMGFMT_BGR24) return 3 | VFCAP_FLIPPED; 45 if(fmt==IMGFMT_BGR24) return 3 | VFCAP_FLIPPED;
46 return 0; 46 return 0;
47 } 47 }
48 48
49 static void put_image(struct vf_instance_s* vf, mp_image_t *mpi){ 49 static int put_image(struct vf_instance_s* vf, mp_image_t *mpi){
50 mux_v->buffer=mpi->planes[0]; 50 mux_v->buffer=mpi->planes[0];
51 mencoder_write_chunk(mux_v, mpi->width*mpi->height*3, 0x10); 51 mencoder_write_chunk(mux_v, mpi->width*mpi->height*3, 0x10);
52 return 1;
52 } 53 }
53 54
54 //===========================================================================// 55 //===========================================================================//
55 56
56 static int vf_open(vf_instance_t *vf, char* args){ 57 static int vf_open(vf_instance_t *vf, char* args){