# HG changeset patch # User michael # Date 1140094329 0 # Node ID b1378adb995fef8fbf8f82f3d3f6f2de5efa07e3 # Parent 7c4eef408b6b380640aeeeca89e75924eb91d1fe make swscale-example compile patch by (Alan Curry ) diff -r 7c4eef408b6b -r b1378adb995f postproc/swscale-example.c --- a/postproc/swscale-example.c Thu Feb 16 10:08:03 2006 +0000 +++ b/postproc/swscale-example.c Thu Feb 16 12:52:09 2006 +0000 @@ -90,9 +90,9 @@ out[i]= (uint8_t*) malloc(refStride[i]*h); } - srcContext= sws_getContext(w, h, IMGFMT_YV12, srcW, srcH, srcFormat, flags, NULL, NULL); - dstContext= sws_getContext(srcW, srcH, srcFormat, dstW, dstH, dstFormat, flags, NULL, NULL); - outContext= sws_getContext(dstW, dstH, dstFormat, w, h, IMGFMT_YV12, flags, NULL, NULL); + srcContext= sws_getContext(w, h, IMGFMT_YV12, srcW, srcH, srcFormat, flags, NULL, NULL, NULL); + dstContext= sws_getContext(srcW, srcH, srcFormat, dstW, dstH, dstFormat, flags, NULL, NULL, NULL); + outContext= sws_getContext(dstW, dstH, dstFormat, w, h, IMGFMT_YV12, flags, NULL, NULL, NULL); if(srcContext==NULL ||dstContext==NULL ||outContext==NULL){ printf("Failed allocating swsContext\n"); goto end; @@ -139,7 +139,7 @@ } } -void mp_msg_c( int x, const char *format, ... ){ +void mp_msg( int x, int y, const char *format, ... ){ va_list va; va_start(va, format); vfprintf(stderr, format, va); @@ -192,7 +192,7 @@ int x, y; struct SwsContext *sws; - sws= sws_getContext(W/12, H/12, IMGFMT_BGR32, W, H, IMGFMT_YV12, 2, NULL, NULL); + sws= sws_getContext(W/12, H/12, IMGFMT_BGR32, W, H, IMGFMT_YV12, 2, NULL, NULL, NULL); for(y=0; y