[Ffmpeg-devel] pip.c - PiP (Picture in Picture) v1.0 patch. Remakeof watermark.c

Mihail Stoyanov screamer
Tue Oct 24 14:40:54 CEST 2006


This is how it goes for me

---------------------------------
gcc -I/sources/ffmpeg-stable -I/sources/ffmpeg-stable -I/sources/ffmpeg-stable/libavutil
 -I/sources/ffmpeg-stable/libavcodec -I/sources/ffmpeg-stable/libavformat -I/sources/ffmpeg-stable/libswscale
 -fPIC  -fomit-frame-pointer -g -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith
 -Wredundant-decls -Winline -O3 -DHAVE_AV_CONFIG_H
`freetype-config --cflags`   -c -o pip.o pip.c
In file included from pip.c:139:
/sources/ffmpeg-stable/libavformat/avformat.h:249: warning: `AVFrac' is
deprecated (declared at /sources/ffmpeg-stable/libavformat/avformat.h:102)
[cut warnings]
---------------------------------

No errors. This is Debian sarge btw

Line 987 is : "ci->x_size, ci->y_size, PIX_FMT_RGBA32,"
It's part of
                    sws_getCachedContext(ci->watermark_convert_ctx,
                        ci->pCodecCtx->width, ci->pCodecCtx->height,
ci->pCodecCtx->pix_fmt,
                        ci->x_size, ci->y_size, PIX_FMT_RGBA32,
                        sws_flags, NULL, NULL, NULL);

ci->x_size & ci->y_size are int

Resending the full patch (one whole patch) just to be sure :)


----- Original Message ----- 
From: "V?ctor Paesa" <wzrlpy at arsystel.com>
To: "FFmpeg development discussions and patches" <ffmpeg-devel at mplayerhq.hu>
Sent: Tuesday, October 24, 2006 1:31 AM
Subject: Re: [Ffmpeg-devel] pip.c - PiP (Picture in Picture) v1.0 patch.
Remakeof watermark.c


Hi,
[cut]
It didn't compile:

gcc -I/home/Inma/src/ffmpeg_svn/ffmpeg -I/home/Inma/src/ffmpeg_svn/ffmpeg
-I/home/Inma/src/ffmpeg_svn/ffmpeg/libavutil
-I/home/Inma/src/ffmpeg_svn/ffmpeg/libavcodec
-I/home/Inma/src/ffmpeg_svn/ffmpeg/libavformat
-I/home/Inma/src/ffmpeg_svn/ffmpeg/libswscale -fPIC  -march=pentium4
-fomit-frame-pointer -pthread -g -Wdeclaration-after-statement -Wall
-Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls
-Winline -O3 -DHAVE_AV_CONFIG_H `freetype-config --cflags`   -c -o pip.o
pip.c
gcc: unrecognized option `-pthread'
pip.c:1: warning: -fPIC ignored for target (all code is position
independent)
In file included from pip.c:139:

[snipped warnings on deprecations]

pip.c: In function `pip_get_frame':
pip.c:987: error: invalid operands to binary +
make[1]: *** [pip.o] Error 1
rm ppm.o null.o fish.o watermark.o

Could you please recheck the patch?
Regards,
V?ctor
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel at mplayerhq.hu
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pip_full.patch
Type: application/octet-stream
Size: 41137 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20061024/cacbeb46/attachment.obj>



More information about the ffmpeg-devel mailing list