ffmpeg fix so we can compile it without deprecated functions

this corrects the error at compiling times described in issue  #170