No longer use deprecated avcodec_free_frame().