[Ffmpeg-devel] Negative stride in swscaler
GizmoSDK
gizmo_video
Sat Feb 17 13:22:37 CET 2007
Ok. Finally got my ffmpeg email woking again.
There is a bug in the swscaler software when converting from yuv to
rgb and the line stride is negative.
e.g.
static inline int RENAME(yuv420_rgb16)(SwsContext *c, uint8_t* src[],
int srcStride[], int srcSliceY,
int srcSliceH, uint8_t* dst[], int dstStride[]){
int y, h_size;
if(c->srcFormat == PIX_FMT_YUV422P){
srcStride[1] *= 2;
srcStride[2] *= 2;
}
h_size= (c->dstW+7)&~7;
if(h_size*2 > dstStride[0]) h_size-=8;
The h_size is always decremented with 8 for negative strides which is
wrong .
/Anders Mod?n
More information about the ffmpeg-devel
mailing list