Throw exception if av_frame_alloc() fails.