Implement poll_frame() method. Fix ffmpeg.c bug with