Move frame_available computation to where it belongs in ffmpeg.c.