Removed warnings on compilation and build updated against latest ffmpeg

ffmpeg version N-66622-g904cfd2 Copyright (c) 2000-2014 the FFmpeg developers
built on Oct  7 2014 16:04:35 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
configuration: --prefix=/usr --enable-shared
libavutil      54.  9.100 / 54.  9.100
libavcodec     56.  2.101 / 56.  2.101
libavformat    56.  7.104 / 56.  7.104
libavdevice    56.  1.100 / 56.  1.100
libavfilter     5.  1.102 /  5.  1.102
libswscale      3.  1.100 /  3.  1.100
libswresample   1.  1.100 /  1.  1.100