23 May
2011
23 May
'11
10:17 a.m.
hi, i encounter this problem too. i use this can solve the problem. You need to reset src and linesize of source image, in my case is use sws_scale from rgb24, 640x480 -> YUV420 176x144 the code goes: if (option & VIDEO_FLIP) { src[0] += linesize[0]*(height-1); linesize[0] = -linesize[0]; } sws_scale(ctx, src, linesize, 0, height, dst, dst_linesize); Maybe some help for you. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Flip-in-sws-scale-tp939665p3543657.... Sent from the FFmpeg-users mailing list archive at Nabble.com.