Reverting back to avcodec_alloc_frame for compatibility with old ubuntu
packages.