diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-02-16 12:52:09 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-02-16 12:52:09 +0000 |
commit | c4da13ec528c26e09f77a1315009a8551b555e04 (patch) | |
tree | ef4f29d4768d13fcae0e66b75cf32dd5f9a20e0c | |
parent | 2431c2a2cbb00e8b8c82a1a51471464a827efe53 (diff) |
make swscale-example compile patch by (Alan Curry <pacman TheWorld com>)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17632 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | postproc/swscale-example.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/postproc/swscale-example.c b/postproc/swscale-example.c index 15a3545f3c..f8e0ef4e8e 100644 --- a/postproc/swscale-example.c +++ b/postproc/swscale-example.c @@ -90,9 +90,9 @@ static void doTest(uint8_t *ref[3], int refStride[3], int w, int h, int srcForma 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 @@ static void doTest(uint8_t *ref[3], int refStride[3], int w, int h, int srcForma } } -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 main(int argc, char **argv){ 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<H; y++){ for(x=0; x<W*4; x++){ |