[FFmpeg-devel] [PATCH 3/3] avcodec/ff_init_vlc_sparse: use a local array for static vlcs avoiding malloc()

Nicolas George nicolas.george at normalesup.org
Sat Jul 13 14:13:42 CEST 2013


Le quintidi 25 messidor, an CCXXI, Michael Niedermayer a écrit :
> the largest allocation i could spot was 1296, 1500 is a bit rounded up
> from that. If some future codec needs more then this would need to
> be increased

Thanks. Then I believe a comment should explain that:

	/* maximum known size: 1296 for $codec ($sample) */
	VLCcode localbuf[1500];

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130713/00b6325b/attachment.asc>


More information about the ffmpeg-devel mailing list