demux: avformat: fix compilation error with up-to-date libavformat
There is no modification done for the input buffer, parameter buf
should have
pointed to constant type before.
Furthermore, libavformat is now updated to enforce this. So, this fixes the compilation error with up-to-date libavformat.