[tvheadend] Fix build with FFmpeg >= 3.1