Commit 5752ccc7 authored by smorlat's avatar smorlat
Browse files

fix bug and update cs.po



git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@194 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent 16ee0f20
......@@ -188,7 +188,7 @@ static void prepare(EncState *s){
/*snow does not like 1st pass rate control*/
/*and rate control eats too much cpu with CIF high fps pictures*/
c->rc_max_rate=(float)s->maxbr*0.8;
c->rc_min_rate=c->bit_rate;
c->rc_min_rate=0;
c->rc_buffer_size=c->rc_max_rate;
}else{
/*use qmin instead*/
......
......@@ -790,18 +790,20 @@ static int video_out_set_corner(MSFilter *f,void *arg){
VideoOut *s=(VideoOut*)f->data;
ms_filter_lock(f);
set_corner(s, *(int*)arg);
ms_display_lock(s->display);
{
int w=s->fbuf.w;
int h=s->fbuf.h;
int ysize=w*h;
int usize=ysize/4;
memset(s->fbuf.planes[0], 0, ysize);
memset(s->fbuf.planes[1], 0, usize);
memset(s->fbuf.planes[2], 0, usize);
}
ms_display_unlock(s->display);
if (s->display){
ms_display_lock(s->display);
{
int w=s->fbuf.w;
int h=s->fbuf.h;
int ysize=w*h;
int usize=ysize/4;
memset(s->fbuf.planes[0], 0, ysize);
memset(s->fbuf.planes[1], 0, usize);
memset(s->fbuf.planes[2], 0, usize);
}
ms_display_unlock(s->display);
}
ms_filter_unlock(f);
return 0;
}
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment