Skip to content

Commit

Permalink
rtpenc: Fix building with GCC 14
Browse files Browse the repository at this point in the history
This incompatible pointer type issue became a fatal error in GCC 14. The
AVBuffer API started using size_t in 5.0 with ef6a9e5.
  • Loading branch information
chewi authored and jc-kynesim committed Feb 19, 2024
1 parent ba40fd4 commit 5d3c1c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavformat/rtpenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ static int rtp_write_packet(AVFormatContext *s1, AVPacket *pkt)
case AV_CODEC_ID_H264:
{
uint8_t *side_data;
int side_data_size = 0;
size_t side_data_size = 0;

side_data = av_packet_get_side_data(pkt, AV_PKT_DATA_NEW_EXTRADATA,
&side_data_size);
Expand Down

0 comments on commit 5d3c1c0

Please sign in to comment.