[FFmpeg-devel] Get rid of magic number in dsicinvideo.c

Mohammad G webmaster at mohammadg.com
Mon Nov 23 16:34:58 CET 2015


Greetings,

File of interest is: libavcodec/dsicinvideo.c

Line 103:
memcpy(huff_code_table, src, 15);

Magic number 15 triggers some source code analysis tools to detect it as a
potential issue.

I'm requesting a change to:
memcpy(huff_code_table, src, sizeof(huff_code_table));

Which is equivalent in functionality.

Regards,
Mohammad


More information about the ffmpeg-devel mailing list