Remove compiler warning (unused variable) and fixed typo.
Partial update to newer ffmpeg API (Custom callback not working).
Removed non-functional callback.