Commit b4c1f861 authored by smorlat's avatar smorlat

new winvideo2 is working well.



git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@108 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent 11d7f45a
EXTRA_DIST= winsnd2.c winsnd.c winvideo.c winvideods.c wincevideods.c dxfilter.h dxfilter.cpp msfileplayer_win.c msfilerec_win.c winsndds.cpp nowebcamCIF.jpg winsnd3.c vfw-missing.h
EXTRA_DIST= winsnd2.c winsnd.c winvideo.c \
winvideods.c wincevideods.c dxfilter.h dxfilter.cpp \
msfileplayer_win.c msfilerec_win.c winsndds.cpp nowebcamCIF.jpg winsnd3.c vfw-missing.h \
winvideo2.c
BUILT_SOURCES=alldescs.h
......
......@@ -136,6 +136,10 @@ static void pixconv_process(MSFilter *f){
s->out_fmt,SWS_FAST_BILINEAR,
NULL, NULL, NULL);
}
if (s->in_fmt==PIX_FMT_BGR24){
inbuf.data[0]+=inbuf.linesize[0]*(s->size.height-1);
inbuf.linesize[0]=-inbuf.linesize[0];
}
if (sws_scale(s->sws_ctx,inbuf.data,inbuf.linesize, 0,
s->size.height, s->outbuf.planes, s->outbuf.strides)<0){
ms_error("MSPixConv: Error in sws_scale().");
......
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