jc-kynesim / rpi-ffmpeg

FFmpeg work for RPI
Other
107 stars 25 forks source link

Resolving Incompatible Pointer Types Error when compiling using gcc14 #92

Open tao-harald opened 3 weeks ago

tao-harald commented 3 weeks ago

I'm submitting this pull request to fix the following error when I try to build rpi-ffmpeg using gcc14:

libavformat/rtpenc.c: In function 'rtp_write_packet':
libavformat/rtpenc.c:593:45: error: passing argument 3 of 'av_packet_get_side_data' from incompatible pointer type [-Wincompatible-pointer-types]
593 | &side_data_size);
    | ^~~~~~~~~~~~~~~
    | |
    | int *
In file included from libavformat/avformat.h:316,
from libavformat/rtpenc.c:23:
./libavcodec/packet.h:604:42: note: expected 'size_t *' {aka 'long unsigned int *'} but argument is of type 'int *'
604 | size_t *size);
    | ~~~~~~~~^~~~
jc-kynesim commented 3 weeks ago

Fixed by merging with current 5.1.4 branch