lwlibav: Fix a C++ compilation with ffmpeg.

There is incompatibility of pointer data type.