[x264-devel] x264-0.0.20140308 compilation warning

Ilya Gordeev mirraz1 at rambler.ru
Mon Mar 2 09:28:37 CET 2015

Building x264-0.0.20140308 by gcc-4.9.2 I'v got this message:
common/bitstream.h:101:19: warning: ‘tmp_buf.i’ is used uninitialized in this function [-Wuninitialized]

It because in set.c "bs_init" is called with uninitialized "p_data" parameter but then in bitstream.h:101 it accesses to the first 4 bytes of "p_data" (if "offset" is equals to 0)

Ilya Gordeev.

More information about the x264-devel mailing list