[FFmpeg-devel] [PATCH 1/1] add option in file.c: pkt_size toset max_packet_size

Gyan Doshi ffmpeg at gyani.pro
Thu Jul 31 11:16:56 EEST 2025



On 2025-07-31 01:06 pm, 1+1=10 wrote:
> If max_packet_size is -1, a crash will occur in the ffio_fdopen function due to malloc(-1),
> but max_packet_size is initialized to 0 in the url_alloc_for_protocol function.
> If it is not customized to -1, this situation should not occur.

But your added option allows the user to set it to an invalid value. 
Rectify that.

Regards,
Gyan



More information about the ffmpeg-devel mailing list