Fix some minor warnings

Mostly type comparison, but also a deprecated ffmpeg func.

-[Unknown]