[FFmpeg-devel] [PATCH] Fix implicit declarations of mpegts functions in libavformat/rtpdec.c

Alexis Ballier alexis.ballier
Wed Jan 20 10:06:23 CET 2010

This patch fixes those warnings:
libavformat/rtpdec.c: In function ?rtp_parse_open?:
libavformat/rtpdec.c:291: warning: implicit declaration of function
libavformat/rtpdec.c:291: warning: assignment makes pointer from
integer without a cast
libavformat/rtpdec.c: In function ?rtp_parse_packet?:
libavformat/rtpdec.c:423: warning: implicit declaration of function
libavformat/rtpdec.c: In function ?rtp_parse_close?:
libavformat/rtpdec.c:559: warning: implicit declaration of function

while the last two can probably be safely ignored, the first two
warnings cannot. Because the return type of implicitly declared
functions is int, I have yet to see an implicitly declared function
that is supposed to return a pointer work properly on a 64 bits host.
This reverts parts of revs. 21205 and 21206 (and adds a comment why
the definitions are here).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: implicit_decls_rtpdec.patch
Type: application/octet-stream
Size: 1245 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100120/412093cd/attachment.obj>

More information about the ffmpeg-devel mailing list